From 3186f1f30c41d6e4fd07540d9745920cf2102ccb Mon Sep 17 00:00:00 2001 From: Michael Hauser-Raspe Date: Wed, 8 Aug 2018 00:05:09 +0100 Subject: [PATCH] Respect autostart parameter. --- bumblebee/modules/pulseaudio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bumblebee/modules/pulseaudio.py b/bumblebee/modules/pulseaudio.py index 2312545..b9b02c6 100644 --- a/bumblebee/modules/pulseaudio.py +++ b/bumblebee/modules/pulseaudio.py @@ -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