Skip to content

Instantly share code, notes, and snippets.

@adityatelange
Created March 15, 2021 08:12
Show Gist options
  • Save adityatelange/5c29b790fc4f4870ab7efab7af273e98 to your computer and use it in GitHub Desktop.
Save adityatelange/5c29b790fc4f4870ab7efab7af273e98 to your computer and use it in GitHub Desktop.
create WhatsAppWeb native app for Ubuntu 20.10

using https://github.com/nativefier/nativefier

Install Nativefier

$ npm install -g nativefier

Create App

$ nativefier web.whatsapp.com

Move created app to /opt

$ sudo mv ~/WhatsAppWeb-linux-x64 /opt/WhatsAppWeb/

Create a desktop icon at ~/.local/share/applications/WhatsAppWeb.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Terminal=false
Type=Application
Name=WhatsAppWeb
Icon=/opt/WhatsAppWeb/resources/app/icon.png
Path=/opt/WhatsAppWeb
Exec=/opt/WhatsAppWeb/WhatsAppWeb
StartupNotify=true
OnlyShowIn=Unity;GNOME;
X-UnityGenerated=true
MimeType=text/plain;
Categories=Network;Application;
Keywords=WhatsApp;webapp;
X-Ubuntu-Gettext-Domain=WhatsApp
StartupWMClass="WhatsAppWeb"

make sure you change StartupWMClass with your own key

To find out the corresponding WM_CLASS, please run the command xprop WM_CLASS and then click your window.

refs: https://askubuntu.com/a/1144265 nativefier/nativefier#204 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment