Respect autostart parameter.

This commit is contained in:
Michael Hauser-Raspe 2018-08-08 00:05:09 +01:00 committed by Tobias Witek
parent c0f3f47cf1
commit 3186f1f30c

View file

@ -29,6 +29,7 @@ class Module(bumblebee.engine.Module):
bumblebee.output.Widget(full_text=self.volume) bumblebee.output.Widget(full_text=self.volume)
) )
try: try:
if bumblebee.util.asbool(self.parameter("autostart", False)):
bumblebee.util.execute("pulseaudio --start") bumblebee.util.execute("pulseaudio --start")
except Exception: except Exception:
pass pass