瀏覽代碼

Fix Typo

Forgot quotes in if statement.
master
Nate Bohman 4 年之前
父節點
當前提交
7c803816b7
簽署人: Nate Bohman <natrinicle@gmail.com> GPG 金鑰 ID: C10546A54ABA1CE5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      mpris_firefox_playstatus.sh

+ 1
- 1
mpris_firefox_playstatus.sh 查看文件

@@ -2,7 +2,7 @@

firefox_mpris_dbus=$(dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep -Po "org.mpris.*firefox[^\"]+")

if [ -n $firefox_mpris_dbus ]; then
if [ -n "${firefox_mpris_dbus}" ]; then
playback_string=$(dbus-send --print-reply --dest=${firefox_mpris_dbus} /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'PlaybackStatus' | grep -Po "(?<=string \")[^\"]+")

echo "Firefox MPRIS Instance ${firefox_mpris_dbus} has playback status ${playback_string}"

Loading…
取消
儲存