Skip to content

Commit

Permalink
extras: Update extras/mpvc-mpris
Browse files Browse the repository at this point in the history
  • Loading branch information
gmt4 committed Oct 25, 2023
1 parent 56d5b32 commit 5d43ec5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extras/mpvc-mpris
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ PROGVERSION="v1.4"
PROGAUTHOR=gmt4
PROGURL="https://github.com/gmt4/mpvc"

set -euf

# globals really
mpris_defaults()
{
Expand All @@ -25,12 +27,10 @@ mpris_defaults()
playerPath=org.mpris.MediaPlayer2.Player
MPVC_MPRIS_PLAYERS=${MPVC_MPRIS_PLAYERS:-"mpv mpd vlc"}

if [ -z "$DBUS" ]; then usage "$PROGNAME: Error no dbus-send found (required)"; fi
if [ -z "$PACTL" ]; then usage "$PROGNAME: Error no pactl found (required)"; fi
if [ -z "${DBUS:-}" ]; then usage "$PROGNAME: Error no dbus-send found (required)"; fi
if [ -z "${PACTL:-}" ]; then usage "$PROGNAME: Error no pactl found (required)"; fi
}

set -euf

mpris_cmd()
{
$DBUS \
Expand Down

0 comments on commit 5d43ec5

Please sign in to comment.