Nativefier repository: https://github.com/nativefier/nativefier
Based on: https://github.com/frealgagu/archlinux.whatsapp-nativefier
nativefier --name "WhatsApp" --icon icon.png --user-agent "safari" --inject wpp-inject.js --browserwindow-options '{ "webPreferences": { "spellcheck": true } }' --verbose --single-instance --tray web.whatsapp.com
Once it finishes you will have a new directory in the same location named whatsapp-linux-x64
, rename this to whatsapp
and move it to /opt
.
mv Whatsapp-linux-x64 whatsapp
sudo mv whatsapp /opt
To get the WMClass
:
xprop WM_CLASS
Place the crosshair on the WhatsApp window. You will get something of the type
whatsapp-nativefier-7bbd2c
in the terminal, change the original value with this in thewhatsapp.desktop
file.
Update the WMClass
on whatsapp.desktop
and copy it to /usr/share/applications
.
cp whatsapp.desktop ~/.local/share/applications/
It is possible that you need to run the command below to make the
.desktop
file work on~/.local/share/applications
update-desktop-database ~/.local/share/applications/