frealgagu / archlinux.whatsapp-nativefier

18 stars 8 forks source link

tray icon not distinguishes from lef/right click #13

Closed wagarcdev closed 3 years ago

wagarcdev commented 3 years ago

Hello friend !

glad you could manage to wrap it without the "chrome update" bug ! I was not...

I am trying to do a change in the behaviour of the tray icon.

The tray icon behavior is the same for right or left clicks...

I was trying to make the app opens directly from left click and contextMenu to only appears in right click... I think is possible to chage it making a switch case in the createTrayIcon function, file "main.js", func starting at line 10026...

I tried myself but I do not kwon JS enought...

Could you help ?

wagarcdev commented 3 years ago

I found a workaroud...

It seems that there is an Electron problem, because the app should already do this by defalult.... Electron expects two libappindicator files.

the workaround was : As pointed out here: https://github.com/signalapp/Signal-Desktop/issues/3045#issuecomment-844877110

inside the whatsapp-nativifier folder (for me /opt/whatsapp-nativefier ) simply create this 2 files:

$ sudo touch libappindicator3.so $ sudo touch libappindicator3.so.1