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