mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 02:38:33 +02:00
spotify: spawn a background process for DBus communication
Otherwise, we will block awesome if spotify isn't answering
This commit is contained in:
parent
a7919941b3
commit
ca4759b3d6
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ end
|
||||||
local function cmd(command)
|
local function cmd(command)
|
||||||
local client = spotify()
|
local client = spotify()
|
||||||
if client then
|
if client then
|
||||||
os.execute("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify " ..
|
awful.util.spawn("dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify " ..
|
||||||
"/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." .. command)
|
"/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." .. command, false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue