From f2052c21beb76672cda888b51297fb1369e1eb1d Mon Sep 17 00:00:00 2001 From: Michael Kwardakov Date: Wed, 16 Jan 2019 07:42:44 +0300 Subject: [PATCH] Fix ending newline from mocp on some systems --- bumblebee/modules/mocp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/mocp.py b/bumblebee/modules/mocp.py index 1ab5b29..3063f50 100644 --- a/bumblebee/modules/mocp.py +++ b/bumblebee/modules/mocp.py @@ -52,7 +52,7 @@ class Module(bumblebee.engine.Module): def _load_song(self): try: - self._info = bumblebee.util.execute("mocp -Q '" + self._format + "'" ) + self._info = bumblebee.util.execute("mocp -Q '" + self._format + "'" ).strip() self._running = 1 except RuntimeError: self._running = 0