From b89e384b20bfe80d4102ad5de58b8eee93dc3395 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Fri, 9 Jun 2017 11:01:25 +0200 Subject: [PATCH] [modules/pulseaudio] Ignore errors when starting pulseaudio daemon This does not really solve the issue indicated in the ticket, but at least it should leave the user with a working bar. see #108 --- bumblebee/modules/pulseaudio.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bumblebee/modules/pulseaudio.py b/bumblebee/modules/pulseaudio.py index bb2d1e0..c4eb000 100644 --- a/bumblebee/modules/pulseaudio.py +++ b/bumblebee/modules/pulseaudio.py @@ -22,7 +22,10 @@ class Module(bumblebee.engine.Module): super(Module, self).__init__(engine, config, bumblebee.output.Widget(full_text=self.volume) ) - bumblebee.util.execute("pulseaudio --start") + try: + bumblebee.util.execute("pulseaudio --start") + except Exception: + pass self._left = 0 self._right = 0