[modules/pulseaudio] Start pulseaudio daemon, if not running

Since the module requires the pulseaudio daemon to be running, in order
to query system information such as the default source/sink and the
current volume, start the daemon, if necessary.

fixes #108
This commit is contained in:
Tobias Witek 2017-06-06 10:49:33 +02:00
parent d48e661d97
commit 2eff6b4933

View file

@ -22,6 +22,7 @@ class Module(bumblebee.engine.Module):
super(Module, self).__init__(engine, config,
bumblebee.output.Widget(full_text=self.volume)
)
bumblebee.util.execute("pulseaudio --start")
self._left = 0
self._right = 0