Respect autostart parameter.

This commit is contained in:
Michael Hauser-Raspe 2018-08-08 00:05:09 +01:00
parent b2bf7c7aaa
commit 37929d4903

View file

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