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)