Last active
January 13, 2025 20:12
-
-
Save ajikamaludin/9fb61b0c62ca15e7fedcfa6db7e627be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create file /usr/share/applications/whatsapp-webapp.desktop | |
<<<< | |
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Name=WhatsApp | |
GenericName=WhatsApp | |
Comment=WhatsApp desktop webapp | |
#Exec=webapp-container --store-session-cookies --webappUrlPatterns=https?://*.whatsapp.com/* --user-agent-string='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36 Edg/85.0.564.44' https://web.whatsapp.com %u | |
Exec=/opt/google/chrome/google-chrome --app=https://web.whatsapp.com/ | |
Terminal=false | |
Type=Application | |
StartupNotify=true | |
MimeType=text/plain; | |
# If you want icon, type path of icon | |
Icon=/home/aji/.WhatsApp.svg | |
Categories=Network;Application; | |
Keywords=WhatsApp;webapp; | |
X-Ubuntu-Gettext-Domain=WhatsApp | |
StartupWMClass=web.whatsapp.com | |
2. Install Google Chrome | |
3. Download Whatsapp logo from wiki and save to | |
https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg | |
/home/aji/.WhatsApp.svg | |
4. Execute | |
bash -c "wmctrl -xa web.whatsapp.com || /opt/google/chrome/google-chrome --app=https://web.whatsapp.com/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice