mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-13 19:54:21 +02:00
spotify: do not expect an answer to DBus request
Using os.execute makes awesome block during execution. Don't wait for anything.
This commit is contained in:
parent
1e993bfa10
commit
1342c2b227
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ 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 " ..
|
os.execute("dbus-send --dest=org.mpris.MediaPlayer2.spotify " ..
|
||||||
"/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." .. command)
|
"/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." .. command)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue