J-Lentz / iwgtk

Lightweight wireless networking GUI (front-end for iwd)
GNU General Public License v3.0
223 stars 15 forks source link

issues with tray icon under archlinux + lxpanel-gtk3 #44

Open cburgard opened 2 months ago

cburgard commented 2 months ago

I'm using iwgtk since a few days and I love it, thanks for providing this awesome piece of software!

My only struggly is to get the tray icon working.

I'm using archlinux and have tried both lxpanel and lxpanel-gtk3, but in either configuration, the tray icon just does not show up when calling iwgtk -i.

I cannot see anything appearing when using the qdbusviewer. What I do see is this, though:

% dbus-launch iwgtk -i &
[1] 2639
% Icon theme 'nuoveXT2' is missing icon 'network-wireless-signal-excellent-symbolic': Overriding theme to Adwaita
Failed to register signal level agent: GDBus.Error:net.connman.iwd.AlreadyExists: Object already exists

The first one seems non-problematic, but the second one is pretty puzzling to me, as I don't use connman (I've tried it, but uninstalled it since.)

Any suggestions on how to get the tray icon to work are highly appreciated. I'm happy to provide more detailed info if needed!

J-Lentz commented 2 months ago

Hello,

Are you seeing that message on your first iwgtk -i attempt of your session, or only after a previous (unsuccessful) attempt?

I'm wondering if systemctl restart iwd resolves the issue.

cburgard commented 2 months ago

Hi!

I see that already after the first attempt. Restarting iwd seems to have no effect whatsoever.

Also, unless I use dbus-lauch, I see no message whatsoever and iwgtk -i just silently does nothing.

I'm happy to provide logs/details/anything else you might find useful.

J-Lentz commented 2 months ago

When you run iwgtk -i without dbus-launch, does the program hold or exit (it should hold)? iwgtk should generally let you know if anything has gone wrong with the dbus registration, so silently doing nothing indicates success, at least on iwgtk's side of the bus.

By my understanding, I wouldn't expect the dbus-launch approach to work unless you're launching both iwgtk and lxpanel via a single dbus-launch command, so that they both connect to the same session bus.

Have you used any other applications successfully with the lxpanel indicator plugin? I believe libindicator-gtk2/libindicator-gtk3 should be required, and it looks like neither the lxpanel nor lxpanel-gtk3 Arch package has it as a dependency.

cburgard commented 2 months ago

I'm using lxpanel-gtk3 and have libindicator-gtk3 installed.

Stopping iwgtk and restarting it leads to it holding, but I still don't get an indicator icon.

% pkill -9 iwgtk
% iwgtk -i
Icon theme 'nuoveXT2' is missing icon 'network-wireless-signal-excellent-symbolic': Overriding theme to Adwaita

I'm not sure if any other app I'm using uses the indicator library, but I would not neccessarily expect, since I updated from gtk2 to gtk3 for the specific purpose of getting iwgtk to work.

Please let me know if there's more info I can give you to debug this!

J-Lentz commented 2 months ago

I just tried out the lxpanel-gtk3 Arch package with the system tray plugin enabled, and it doesn't seem to export a StatusNotifierWatcher interface to the session bus. So my suspicion is that lxpanel might only support XEmbed. Does snixembed resolve the issue?