From 37929d49036f1e0d17d49ce5eb11c177fafa0555 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 2a393a4..2b4fd05 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