summaryrefslogtreecommitdiff
path: root/media-sound/spotify/files/spotify-wrapper
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-09 23:57:14 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-09 23:57:14 +0100
commit97ad466a2e3cc5810c247cdcaebe851c899d9425 (patch)
tree0b5dc2027f6934a14552dea3556997a59f46c376 /media-sound/spotify/files/spotify-wrapper
parentf23211cbc4e9bb119ffcf940c23a5a4b5a3bde12 (diff)
media-sound/spotify : drop the custom ebuild
Diffstat (limited to 'media-sound/spotify/files/spotify-wrapper')
-rw-r--r--media-sound/spotify/files/spotify-wrapper38
1 files changed, 0 insertions, 38 deletions
diff --git a/media-sound/spotify/files/spotify-wrapper b/media-sound/spotify/files/spotify-wrapper
deleted file mode 100644
index 862fa4c6..00000000
--- a/media-sound/spotify/files/spotify-wrapper
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-export LD_LIBRARY_PATH="/usr/$LIBDIR/apulse"
-
-if command -v spotify-dbus.py > /dev/null; then
- echo "Launching spotify with Gnome systray integration."
- spotify-dbus.py "$@"
-elif [ -e "$SPOTIFY_HOME/spotify-tray" ] > /dev/null; then
- echo "Launching spotify with generic systray integration."
- minimized=
- for arg; do
- if [ "$arg" = --minimized ]; then
- minimized=$arg
- break
- fi
- done
- GDK_BACKEND="x11" "$SPOTIFY_HOME/spotify-tray" \
- --client-path="$SPOTIFY_HOME/spotify" --toggle $minimized -- "$@"
-else
- if pgrep -f "Spotify/[0-9].[0-9].[0-9]" > /dev/null; then
- busline="org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri ${1}"
- echo "Spotify is already running"
- echo "Sending ${busline} to dbus"
- if command -v qdbus &> /dev/null; then
- qdbus $busline
- exit
- fi
- if command -v dbus-send &> /dev/null; then
- dbus-send $busline
- exit
- fi
- echo "No bus dispatcher found."
- else
- echo "Neither gnome-integration-spotify nor spotify-tray are installed."
- echo "Launching spotify without systray integration."
- exec "$SPOTIFY_HOME/spotify" "$@"
- fi
-fi