Skip to content

Instantly share code, notes, and snippets.

@f-ilic
Last active September 5, 2022 10:59
Show Gist options
  • Save f-ilic/ef2674b0e3608cbce362ddbb24d97463 to your computer and use it in GitHub Desktop.
Save f-ilic/ef2674b0e3608cbce362ddbb24d97463 to your computer and use it in GitHub Desktop.
Desktop entry for whatsapp

What is dis

  • create .desktop entry for whatsapp
  • achieved by using webwhatsapp but starting it as chrome instance that looks like standalone appication
  • all thats left to do, is download this zip, and run setup.sh
#!/bin/bash
mkdir /home/f/.local/share/applications/
mkdir /home/f/.local/share/icons/
cp whatsapp.svg /home/f/.local/share/icons/
cp whatsapp-webapp.desktop /home/f/.local/share/applications/
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=WhatsApp
GenericName=WhatsApp
Comment=WhatsApp desktop webapp
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/f/.local/share/icons/whatsapp.svg
Categories=Network;Application;
Keywords=WhatsApp;webapp;
X-Ubuntu-Gettext-Domain=WhatsApp
StartupWMClass=web.whatsapp.com
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment