From d41a1b592bdcea09f708b2b0e6fa0972d19dfd40 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 15 Feb 2021 02:46:24 +0100 Subject: Add spotify launcher --- README.md | 2 +- icons/spotify_launcher.png | Bin 0 -> 7423 bytes launcher/QuickMedia-spotify.desktop | 9 +++++++++ src/QuickMedia.cpp | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 icons/spotify_launcher.png create mode 100644 launcher/QuickMedia-spotify.desktop diff --git a/README.md b/README.md index e4f25d5..f36f2b8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # QuickMedia A dmenu-inspired native client for web services. -Currently supported web services: `youtube`, `spotify (podcasts only)`, `nyaa.si`, `manganelo`, `mangatown`, `mangadex`, `4chan`, `matrix` and _others_.\ +Currently supported web services: `youtube`, `spotify (podcasts)`, `nyaa.si`, `manganelo`, `mangatown`, `mangadex`, `4chan`, `matrix` and _others_.\ **Note:** Manganelo doesn't work when used with TOR.\ **Note:** Posting comments on 4chan doesn't work when used with TOR. However browsing works.\ **Note:** TOR system service needs to be running (`systemctl start tor.service`) when using `--tor` option.\ diff --git a/icons/spotify_launcher.png b/icons/spotify_launcher.png new file mode 100644 index 0000000..b3abe61 Binary files /dev/null and b/icons/spotify_launcher.png differ diff --git a/launcher/QuickMedia-spotify.desktop b/launcher/QuickMedia-spotify.desktop new file mode 100644 index 0000000..5751f03 --- /dev/null +++ b/launcher/QuickMedia-spotify.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=QuickMedia Spotify +GenericName=Spotify podcast player +Comment=Spotify podcast player +Icon=/usr/share/quickmedia/icons/spotify_launcher.png +Exec=QuickMedia spotify --no-video +Terminal=false +Keywords=spotify;player;quickmedia;podcast; diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 99bbfb9..f6d036e 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -462,6 +462,7 @@ namespace QuickMedia { } else if(strcmp(argv[i], "spotify") == 0) { plugin_name = argv[i]; plugin_logo_path = resources_root + "images/spotify_logo.png"; + no_video = true; } else if(strcmp(argv[i], "pornhub") == 0) { plugin_name = argv[i]; plugin_logo_path = resources_root + "images/pornhub_logo.png"; -- cgit v1.2.3