Merge pull request #277 from mijoharas/fix-pulseaudio-bug

Respect autostart parameter.
This commit is contained in:
tobi-wan-kenobi 2018-08-08 09:58:41 +02:00 committed by GitHub
commit 3fc9530ada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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