Skip to content

Commit

Permalink
Snapdrop, StackEdit, and WhatsApp: specify --class so that custom ico…
Browse files Browse the repository at this point in the history
…n gets used for browser process
  • Loading branch information
theofficialgman committed Apr 20, 2024
1 parent ce6f5da commit bd7914f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/Snapdrop/install
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sudo mkdir -p /usr/local/bin /usr/local/share/applications /usr/local/share/icon
echo "Creating launcher and menu button..."
echo '#!/bin/bash
chromium-browser --user-data-dir="$HOME/.config/webapps/snapdrop" --app=https://snapdrop.net/' | sudo tee /usr/local/bin/snapdrop >/dev/null || error "Failed to create snapdrop launcher!"
chromium-browser --user-data-dir="$HOME/.config/webapps/snapdrop" --app=https://snapdrop.net/ --class=snapdrop' | sudo tee /usr/local/bin/snapdrop >/dev/null || error "Failed to create snapdrop launcher!"

sudo chmod +x /usr/local/bin/snapdrop || error "Failed to set snapdrop launcher permissions!"

Expand All @@ -23,5 +23,6 @@ Exec=/usr/local/bin/snapdrop
Icon=snapdrop
Terminal=false
StartupNotify=true
StartupWMClass=snapdrop
Type=Application
Categories=Utility" | sudo tee /usr/local/share/applications/snapdrop.desktop >/dev/null || error "Failed to create menu shortcut!"
3 changes: 2 additions & 1 deletion apps/StackEdit/install
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sudo mkdir -p /usr/local/bin /usr/local/share/applications /usr/local/share/icon
echo "Creating launcher and menu button..."
echo '#!/bin/bash
chromium-browser --user-data-dir="$HOME/.config/webapps/stackedit" --app=https://stackedit.io/app#' | sudo tee /usr/local/bin/stackedit >/dev/null || error "Failed to create stackedit launcher!"
chromium-browser --user-data-dir="$HOME/.config/webapps/stackedit" --app=https://stackedit.io/app# --class=stackedit' | sudo tee /usr/local/bin/stackedit >/dev/null || error "Failed to create stackedit launcher!"

sudo chmod +x /usr/local/bin/stackedit || error "Failed to set stackedit launcher permissions!"

Expand All @@ -23,5 +23,6 @@ Exec=/usr/local/bin/stackedit
Icon=stackedit
Terminal=false
StartupNotify=true
StartupWMClass=stackedit
Type=Application
Categories=Development;IDE;" | sudo tee /usr/local/share/applications/stackedit.desktop >/dev/null || error "Failed to create menu shortcut!"
4 changes: 2 additions & 2 deletions apps/WhatsApp/install
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sudo mkdir -p /usr/local/bin /usr/local/share/applications /usr/local/share/icon
echo "Creating launcher and menu button..."
echo '#!/bin/bash
chromium-browser --user-data-dir="$HOME/.config/webapps/WhatsApp" --app=https://web.whatsapp.com' | sudo tee /usr/local/bin/whatsapp >/dev/null || error "Failed to create whatsapp launcher!"
chromium-browser --user-data-dir="$HOME/.config/webapps/WhatsApp" --app=https://web.whatsapp.com --class=whatsapp' | sudo tee /usr/local/bin/whatsapp >/dev/null || error "Failed to create whatsapp launcher!"

sudo chmod +x /usr/local/bin/whatsapp || error "Failed to set whatsapp launcher permissions!"

Expand All @@ -23,6 +23,6 @@ Exec=/usr/local/bin/whatsapp
Icon=whatsapp
Type=Application
StartupNotify=false
StartupWMClass=WhatsApp
StartupWMClass=whatsapp
Categories=Internet;Chat;Network
Keywords=whatsapp;" | sudo tee /usr/local/share/applications/whatsapp.desktop >/dev/null || error "Failed to create menu shortcut!"

0 comments on commit bd7914f

Please sign in to comment.