mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2026-02-25 12:17:53 +01:00
install: improve chromium-pwa.desktop logic, add chromium-youtube-music.desktop
This commit is contained in:
parent
2e391ebf2b
commit
44a9533a29
9
install
9
install
@ -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/
|
||||
|
||||
9
local/share/applications/chromium-youtube-music.desktop
Executable file
9
local/share/applications/chromium-youtube-music.desktop
Executable 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
|
||||
Loading…
x
Reference in New Issue
Block a user