#983536 nm-tray: no icon shown in tray

Package:
nm-tray
Source:
nm-tray
Description:
Simple Network Manager frontend written in Qt
Submitter:
Martin Atukunda
Date:
2022-03-25 16:24:03 UTC
Severity:
normal
#983536#5
Date:
2021-02-25 19:57:35 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

   Running nm-tray

   * What exactly did you do that was ineffective?

     I started nm-tray from a terminal under i3

   * What was the outcome of this action?

     The application started but, on the tray, a blank space appeared

   * What outcome did you expect instead?

     I expected to see an icon in the tray instead of the blank space on the tray

#983536#10
Date:
2021-12-28 11:46:17 UTC
From:
To:
Cheers,

having the same issue I studied source codes (nm-tray as well as qtbase) and made several attempts to find a solution on the web and finally came across the following wiki page

<https://wiki.archlinux.org/title/Qt#Configuration_of_Qt5_apps_under_environments_other_than_KDE_Plasma>

The issue arises if you do not run any of the desktop environments known by QT.  For me, a simple prefix of "XDG_CURRENT_DESKTOP=GNOME" to the nm-tray command works fine :-)

Regards -- JHK

#983536#15
Date:
2022-03-23 08:33:10 UTC
From:
To:
Dear Maintainer,

I use openbox this problem exist only initially when you aren't connected, if
you connect an icon appears.
Then if you disconnect the icon changes to the "no connection" one and remains.

#983536#20
Date:
2022-03-25 16:21:02 UTC
From:
To:
Can you explain exactly how do you execute:

"For me, a simple prefix of "XDG_CURRENT_DESKTOP=GNOME" to the nm-tray command works fine :-)"

I put:

export 'XDG_CURRENT_DESKTOP=OPENBOX nm-tray'

In my ~/.profile but it doesn't work.

If I try to launch it:
nm-tray
QSystemTrayIcon::setVisible: No Icon set