Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-01-27 10:37:18

iksfce
Member
Registered: 2022-01-27
Posts: 13

xfce 4.16 no icon change in tray in the radiotray-ng application

I have changed from Slackware 14.2 xfce 4.12 to Slackware 15 xfce version 4.16 .
Now when I turn on radiotray-ng the tray icon does not change (radiotray-ng on/off).
Only the radiotray-ng off icon is visible.

radiotray-ng_xfce_tray

Offline

#2 2022-01-27 10:53:26

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Hello and welcome to our lovely forum!

What is the output of:

find /usr/share/icons/ -type f -name 'radiotray-ng*'

…and:

grep 'radiotray-ng' ~/.config/radiotray-ng

Also, is it in your systray?


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#3 2022-01-27 12:19:23

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Hello,
I have no problem with radiotray-ng on xfce 4.12
changing the tray icon works fine.
Only v4.16 does not change the tray icon , see link from previous post

output from find /usr/share/icons/ -type f -name 'radiotray-ng*':
radiotray-ng-icons

Last edited by iksfce (2022-01-27 13:13:03)

Offline

#4 2022-01-27 12:31:22

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Tray icons:
xfce_tray

Offline

#5 2022-01-27 16:08:03

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Yes, I visited the link you posted in your topic. Thanks for providing screenshots.

I can't know the exact reason why it's happening and don't know how to fix it, yet. However, what we can do is eliminate possible reasons one by one and hopefully reach the source of the problem and have tools to correct it.

One of the reasons could have simply been the absence of an icon for its on state. Seeing that you have the necessary icons, we can probably dismiss this one, although it's still a good idea to check whether the icons for both states actually differ and represent what they meant to represent.

It could also be a theming issue. If you can, try a couple of different themes, for example, Adwaita and Greybird.

What's more likely, though, is that its app indicator is not updating its state correctly. We're going to have to skim through some logs to find hints. Does it produce anything in ~/.cache? Anything in ~/.xsession-errors? Moreover, how and where did you get it? Did you compile it yourself?

You also didn't answer if it was in your systray or not.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#6 2022-01-27 20:24:06

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

I compiled the radiotray-ng v.0.2.8 package myself. Changing the themes has no effect, the bug is still visible on v4.16.
Tray icon works fine on Openbox, Cinnamon, Xfce 4.12,
I can't see anything in the logs that will help locate the error, nothing about  an issue with xfce's .
I think your suggestion that appindicators are not working properly could be a good tip, an issue with xfce's support of appindicators
What do you mean about systray. I didn't really understand.

Last edited by iksfce (2022-01-27 20:40:50)

Offline

#7 2022-01-28 04:37:05

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Isn't Slackware 15.0 not ready yet? As far as I can tell, it's available only through an unofficial image.

What configuration options did you give to radiotray-ng for compilation?

Could you execute the following:

gdbus monitor --session --dest com.github.radiotray_ng --object-path /com/github/radiotray_ng

…and try toggling it on and off?

Keep in mind, though, that the destination and the object path may differ on your system. Use bash completion.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#8 2022-01-28 07:27:23

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

I have booted up a Xubuntu-devel virtual machine and can observe the same behavior. The icon doesn't change at all; GtkInspector confirms that as well.

Can you quit it, add the following line to ~/.config/radiotray-ng/radiotray-ng.json:

"debug-logging" : true,

…and launch it again?

Logs are saved in ~/.cache/radiotray-ng/. It creates a new one for each invocation, so to determine the most recent one, just list the directory in a long format like so:

ls -lt ~/.cache/radiotray-ng

…and post the content of the log here inside code tags. Click on one of the four links below your reply box for help on BBCode.

iksfce wrote:

What do you mean about systray. I didn't really understand.

Right-click on a panel radiotray-ng is in, select PanelPanel Preferences…, switch to the Items tab and double-click on Status Tray Plugin. It should have two tabs: Status Notifiers and Systray Icons. Which one is radiotray-ng located in?


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#9 2022-01-28 14:58:49

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

radiotray-ng is located in the Status Notifiers tab

"debug-logging" : true,  log:
radiotray-ng.log

gdbus monitor --session (radiotray-ng on off no logs):
gdbus_monitor_command

Offline

#10 2022-01-28 15:03:03

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Hmm, I've tried everything I could come up with, including removing lines 75 to 81 that define the second conditional. The icon refuses to update.

Whenever it's turned on, the NewIcon() signal is sent as expected:

$ dbus-monitor 'path=/org/ayatana/NotificationItem/radiotray_ng'
signal time=1643380482.321663 sender=org.freedesktop.DBus -> destination=:1.96 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.96"
signal time=1643380482.322005 sender=org.freedesktop.DBus -> destination=:1.96 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.96"
signal time=1643380483.963616 sender=:1.52 -> destination=(null destination) serial=262 path=/org/ayatana/NotificationItem/radiotray_ng; interface=org.kde.StatusNotifierItem; member=NewIcon
method call time=1643380483.965127 sender=:1.23 -> destination=:1.52 serial=133 path=/org/ayatana/NotificationItem/radiotray_ng; interface=org.freedesktop.DBus.Properties; member=GetAll
   string "org.kde.StatusNotifierItem"
$ gdbus monitor --session --dest com.github.radiotray_ng --object-path /org/ayatana/NotificationItem/radiotray_ng
Monitoring signals on object /org/ayatana/NotificationItem/radiotray_ng owned by com.github.radiotray_ng
The name com.github.radiotray_ng is owned by :1.52
/org/ayatana/NotificationItem/radiotray_ng: org.kde.StatusNotifierItem.NewIcon ()

What I noticed, though, is that while the IconName property is correctly set to "radiotray-ng-on", the AttentionIconName property retains "radiotray-ng-off" and the NewAttentionIcon() signal is never sent. It's not even sent when you turn the radio off. I'm not sure whether this the real cause.

node /org/ayatana/NotificationItem/radiotray_ng {
  interface org.freedesktop.DBus.Properties {
    methods:
      Get(in  s interface_name,
          in  s property_name,
          out v value);
      GetAll(in  s interface_name,
             out a{sv} properties);
      Set(in  s interface_name,
          in  s property_name,
          in  v value);
    signals:
      PropertiesChanged(s interface_name,
                        a{sv} changed_properties,
                        as invalidated_properties);
    properties:
  };
  interface org.freedesktop.DBus.Introspectable {
    methods:
      Introspect(out s xml_data);
    signals:
    properties:
  };
  interface org.freedesktop.DBus.Peer {
    methods:
      Ping();
      GetMachineId(out s machine_uuid);
    signals:
    properties:
  };
  interface org.kde.StatusNotifierItem {
    methods:
      Scroll(in  i delta,
             in  s orientation);
      SecondaryActivate(in  i x,
                        in  i y);
      XAyatanaSecondaryActivate(in  u timestamp);
    signals:
      NewIcon();
      NewIconThemePath(s icon_theme_path);
      NewAttentionIcon();
      NewStatus(s status);
      XAyatanaNewLabel(s label,
                       s guide);
      NewTitle();
    properties:
      readonly s Id = 'radiotray-ng';
      readonly s Category = 'ApplicationStatus';
      readonly s Status = 'Active';
      readonly s IconName = 'radiotray-ng-on';
      readonly s IconAccessibleDesc = '';
      readonly s AttentionIconName = 'radiotray-ng-off';
      readonly s AttentionAccessibleDesc = '';
      readonly s Title = 'radiotray-ng';
      readonly s IconThemePath = '';
      readonly o Menu = '/org/ayatana/NotificationItem/radiotray_ng/Menu';
      readonly s XAyatanaLabel = '';
      readonly s XAyatanaLabelGuide = '';
      readonly u XAyatanaOrderingIndex = 0;
  };
  node Menu {
  };
};

Changing the icon-name property to "radiotray-ng-on" through GtkInspector works. Swapping both icons in radiotray-ng.json like so:

        "radiotray-ng-off" : "radiotray-ng-on",
	"radiotray-ng-on" : "radiotray-ng-off",

…will reverse the situation, i.e. the icon will always show the on state.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#11 2022-01-28 15:34:20

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

So we know more, this is xfce 4.16's fault  not the OS distribution

Offline

#12 2022-01-28 16:47:50

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Nope, not necessarily. I'm not sure how you arrived to this conclusion. It very well may be a bug in radiotray-ng itself, since other plugins and items in systray seem to work as intended. Also, don't forget the fact that you're using an unofficial, not production-ready, unstable release of Slackware.

I was trying to find a solution and neither modifying the code, nor creating clever rules in gtk.css produced one. I also tried manually sending DBus methods. Unfortunately, I've reached my current limits here.


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#13 2022-01-28 16:59:47

Tamaranch
Member
Registered: 2020-12-31
Posts: 321

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

I could be wrong, but it could be that a patch I proposed recently solves this problem: https://gitlab.xfce.org/xfce/xfce4-pane … equests/64

It primarily concerns Qt applications, which do not remove the attention icon to return to normal, but only set the status.
But it seems to me that KBar's post above describes a similar situation.

So it could be worth testing if you want.

Offline

#14 2022-01-28 17:12:46

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

I tested the radiotray-ng icon on distributions:
Slackware 15 RC2 xfce 4.16
Slackel 7.3 xfce 4.16
Slackware current xfce 4.16
Always the same result, changing the tray icon doesn't work

Slackel 7.3 Openbox works fine
Slackware 14.2 works fine
Linux Mint LMDE 4 Cinnamon works fine

Therefore my opinion that xfce 4.16 has a bug

Offline

#15 2022-01-28 17:51:45

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Tamaranch, I can confirm that your patch works. Toggling radiotray-ng on and off changes its icons accordingly. Thanks a lot.

iksfce, could you test the above patch and post back the results?


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#16 2022-01-28 18:26:01

Tamaranch
Member
Registered: 2020-12-31
Posts: 321

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Thanks for the feedback, I mentioned this thread in the merge request smile

Offline

#17 2022-01-28 20:51:25

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

I want to say - success! After compiling and installing xfce4-panel (version 4.15.3git) the tray icon works fine.
Tamaranch, thank you for the good tip.
KBar, thx.

Offline

#18 2022-01-29 11:24:23

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

I also compiled xfce-panel-4.16.3 with the patch. Works well, icon changes status.
Thx

Offline

#19 2022-01-29 12:10:13

Tamaranch
Member
Registered: 2020-12-31
Posts: 321

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

Thanks also for the feedback (I was wondering if 4.15.3 above was a typo actually).

Offline

#20 2022-01-29 12:27:25

iksfce
Member
Registered: 2022-01-27
Posts: 13

Re: xfce 4.16 no icon change in tray in the radiotray-ng application

panel_version

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 9 queries executed - Memory usage: 632.69 KiB (Peak: 665.97 KiB) ]