[modules/pulseaudio] Ignore errors when starting pulseaudio daemon

This does not really solve the issue indicated in the ticket, but at
least it should leave the user with a working bar.

see #108
This commit is contained in:
Tobias Witek 2017-06-09 11:01:25 +02:00
parent 2eff6b4933
commit b89e384b20

View file

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