install: improve chromium-pwa.desktop logic, add chromium-youtube-music.desktop

This commit is contained in:
Aminda Suomalainen 2026-01-26 09:13:18 +02:00
parent 2e391ebf2b
commit 44a9533a29
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 16 additions and 2 deletions

View File

@ -184,7 +184,7 @@ if [ "$(id -u)" == "0" ]; then
# Desktop entries
mkdir -vp /usr/local/share/applications/
# These are bound to exist on my systems
cp -v local/share/applications/{a-signal,a-syncplay,plasma-update,a-firefox-cups,a-firefox,a-chromium,chromium-apps}.desktop /usr/local/share/applications/
cp -v local/share/applications/{a-signal,a-syncplay,plasma-update,a-firefox-cups,a-firefox,a-chromium,chromium-apps,chromium-youtube-music}.desktop /usr/local/share/applications/
# If Steam is installed, chances are these work
if [ -f /var/lib/flatpak/exports/bin/com.valvesoftware.Steam ]; then
cp -v local/share/applications/{a-steam,com.valvesoftware.Steam,flatpak-steam-bigpicture,flatpak-steam-tray}.desktop /usr/local/share/applications/
@ -472,7 +472,12 @@ else
ln -nsfv /usr/local/share/applications/a-firefox.desktop $DESKTOP/
if [ -f "/usr/bin/chromium-browser" ]; then
#ln -nsfv /usr/local/share/applications/a-chromium.desktop $DESKTOP/
ln -nsfv /usr/local/share/applications/chromium-apps.desktop $DESKTOP/
if [ -f "$HOME/.local/share/icons/hicolor/256x256/apps/chrome-gdaidcenalcnoknjmiehdkgkcpndkigh-Default.png"}; then
ln -nsfv /usr/local/share/applications/chromium-apps.desktop $DESKTOP/
fi
if [ -f "$HOME/.local/share/icons/hicolor/256x256/apps/chrome-cinhimbnkkaeohfgghhklpknlkffjgod-Default.png"}; then
ln -nsfv /usr/local/share/applications/chromium-youtube-music.desktop $DESKTOP/
fi
fi
if [ -f "/usr/bin/google-chrome-stable" ]; then
ln -nsfv /usr/local/share/applications/a-google-chrome.desktop $DESKTOP/

View File

@ -0,0 +1,9 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=YouTube Music
Exec=chromium --profile-directory=Default --app-id=cinhimbnkkaeohfgghhklpknlkffjgod --app-run-on-os-login-mode=windowed
Icon=chrome-cinhimbnkkaeohfgghhklpknlkffjgod-Default
StartupWMClass=crx_cinhimbnkkaeohfgghhklpknlkffjgod