Make Whatsapp-Desktop works again

jpmunix
  5 years ago
  3

To get it working again we must go to
"/opt/whatsapp-desktop/resources/app"
and edit the file "main.js" as root and look for the line that says
 
whatsApp.window.loadURL('https://web.whatsapp.com');
 
Just above this line we add this other
 
whatsApp.window.webContents.setUserAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36");
 
Save main.js the file and close Wathsapp application if we have it open. Then we go to
"/home/myuser/.config/whatsapp-desktop/Service Worker" directory and empty it completely.  Open a super user console and execute the command
 
chmod -w /home/myuser/.config/whatsapp-desktop/Service Worker/ -R with the application closed and the directory empty.
 
Start Whatsapp desktop and pair again. I hope it serves you. Sorry for my English. I use a translator
Comments
rickslash 5 years ago

Thanks for the tip.

This section was superfluous for me:

Then we go to
"/home/myuser/.config/whatsapp-desktop/Service Worker" directory and empty it completely. Open a super user console and execute the command

chmod -w /home/myuser/.config/whatsapp-desktop/Service Worker/ -R with the application closed and the directory empty.


drpeppercan 5 years ago

It's good to know that there is a solution. For now I'll just run WhatsApp from Opera, it comes preinstalled, and it does work.


Joan_2018 5 years ago

I will try this afternoon. Currently, whatsapp on desktop only work inside Firefox, with his whatsapp extension, but this desktop app do not detect my iPhone, nor my installed Firefox.