squalou / google-chat-linux

source of a fork of google-chat-linux unofficial client from robyf
50 stars 10 forks source link

[KDE] Tray icon shows up as a question mark when started with autostart #55

Closed njanke96 closed 1 year ago

njanke96 commented 1 year ago

I have the app installed through the AUR (google-chat-linux-bin version 5.20.18-1). On Plasma 5.25.5, I have the app configured to autostart through the system settings UI. Up until recently it has been starting fine but now it starts with this question mark icon in the system tray (3rd from the left):

image

The question mark does not change even if I get a message. When I quit the app and start it manually the icon is back to normal and updates when I get a message.

squalou commented 1 year ago

Damn, I would bet it is related again to the appindicator tweak that was removed in last release.

When you manually start it you don't have the issue ... so aybe you could try a workaround (ugly but ..., juste to test).

Create a shell script

#!/bin/bash
sleep 2

/path/to/google-chat/linux/probaly/in/opt/somewhere/gogole-chat-linux

chmod +x the script then put it in, for instance/usr/local/bin then start this with Plasma autostart.

and see if anything change (try with longer sleep maybe ?)

I've never used plasma myself, a bit suck here.

then if nothing else works, I'll tell you what fake empty files to create, that may help.

njanke96 commented 1 year ago

The shell script approach worked the first time, and after a second restart did not work, I increased sleep to 5 and now it seems to be working every time

squalou commented 1 year ago

good news, not a perfect solution but good to know it helps

squalou commented 1 year ago

NOTE

you can also try to create theses empty files (they were removed in last release, as they cause issues with some other WM)

sudo touch /opt/google-chat-linux/libappindicator3.so
sudo touch /opt/google-chat-linux/libappindicator3.so.1

it may solve the issue