From ca4759b3d6032bac2f46861b78df59a102c4d1a6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 5 Jun 2017 20:39:14 +0200 Subject: [PATCH] spotify: spawn a background process for DBus communication Otherwise, we will block awesome if spotify isn't answering --- lib/spotify.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spotify.lua b/lib/spotify.lua index e47f573..df48f31 100644 --- a/lib/spotify.lua +++ b/lib/spotify.lua @@ -32,8 +32,8 @@ end local function cmd(command) local client = spotify() if client then - os.execute("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify " .. - "/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." .. command) + awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify " .. + "/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." .. command, false) end end