Commit dac62724 authored by Elouan Martinet's avatar Elouan Martinet

shell/musictrl: allow dot in dbus services

VLC now uses a random service name such as
org.mpris.MediaPlayer2.vlc.instance447592
parent bda18303
......@@ -6,7 +6,7 @@ if [ -z "$1" ]; then
exit 1
fi
players="$(dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep -Eo 'org\.mpris\.MediaPlayer2\.[a-zA-Z0-9]+')"
players="$(dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep -Eo 'org\.mpris\.MediaPlayer2\.[.a-zA-Z0-9]+')"
if [ -f "${TMP}"/.musictrl ]; then # unsave closed player
echo "${players}" | grep -F "$(cat "${TMP}"/.musictrl)">/dev/null || rm -f "${TMP}"/.musictrl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment