diegoos / whatsapp-nativefier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whatsapp build with nativefier

Nativefier repository: https://github.com/nativefier/nativefier

Based on: https://github.com/frealgagu/archlinux.whatsapp-nativefier

Create whatsapp application

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

Update WMClass

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 the whatsapp.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/

About


Languages

Language:JavaScript 100.0%