SchildiChat / schildichat-desktop

Matrix client / Element Web/Desktop fork
https://schildi.chat
Apache License 2.0
371 stars 42 forks source link

Click or double click on tray icon opens/closes context menu instead of client window (Linux) #61

Open DerSaxxe opened 3 years ago

DerSaxxe commented 3 years ago

If you close the client window you can't open it again clicking on the taskbar icon (single or double). You must right click and select "Show/Hide SchildiChat".

OS: Manjaro-Mate SchildiChat from AUR 1.7.24.sc1-1

Thank you and regards

su-ex commented 3 years ago

That's an upstream electron bug we can do nothing about, see here: https://github.com/electron/electron/issues/14941#issuecomment-756029708 My solution is to remove libappindicator.

DerSaxxe commented 3 years ago

Thank you. I removed libappindicator and replaced some other applications with alternatives that depends on libappindicator. Now it works as expected.

su-ex commented 2 years ago

Let's reopen this so people can stumble across it. Search words: left, mouse, click, linux, tray, icon

su-ex commented 2 years ago

For the schildichat-desktop-bin Arch Linux AUR package, there's the workaround to create those two files in /opt/SchildiChat: https://github.com/electron/electron/issues/14941#issuecomment-679932435

Maybe those could/should be incorporated in the package. For the git and non-bin variant, this is probably not possible to include in the package as they use system electron. Thus, those files probably need to be created there.

NathanC commented 1 year ago

@su-ex that solution worked perfectly for me, thank you! Seems like the upstream issue, while not fixed, is quite active-- so maybe it'll get fixed fairly soon.

For future reference if people stumble across this, exact commands for workaround for schildichat-desktop-bin in Arch's AUR:

# mock out 
sudo touch /opt/SchildiChat/libappindicator3.so
sudo touch /opt/SchildiChat/libappindicator3.so.1
# restart SchildeChat to pick up changes