#917924 nm-tray: does not appear in SNI tray

Package:
nm-tray
Source:
nm-tray
Description:
Simple Network Manager frontend written in Qt
Submitter:
Clint Adams
Date:
2022-04-06 15:33:05 UTC
Severity:
normal
#917924#5
Date:
2018-12-31 18:27:05 UTC
From:
To:
I ran nm-tray, expecting something to appear in taffybar's SNI tray
area.  It did not.

% nm-tray
QSystemTrayIcon::setVisible: No Icon set


strace shows that it is trying to access various non-existent images
in /usr/share/pixmaps .

#917924#10
Date:
2020-04-03 16:22:53 UTC
From:
To:
Cheers,

I'm having the exact same issue, and the tray has no icons - but in my
case, I'm running i3wm (no desktop environment):

% nm-tray
QSystemTrayIcon::setVisible: No Icon set


As suggested, I ran strace and confirmed that missing images in
/usr/share/pixmaps are indeed the issue. I ran the following command:

% strace nm-tray 2>&1 | cat - > output

In this strace, I was able to narrow down exactly what was missing by
searching for "pixmaps":

% sed -n 1861p output

statx(AT_FDCWD, "/usr/share/pixmaps", AT_STATX_SYNC_AS_STAT,
STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0,
stx_mode=S_IFDIR|0755, stx_size=4096, ...}) = 0

% sed -n 1862,1864p output

access("/usr/share/pixmaps/preferences-system-network.png", F_OK) = -1
ENOENT (No such file or directory)
access("/usr/share/pixmaps/preferences-system-network.xpm", F_OK) = -1
ENOENT (No such file or directory)
access("/usr/share/pixmaps/preferences-system-network.svg", F_OK) = -1
ENOENT (No such file or directory)

% sed -n 2269,2271p output

access("/usr/share/pixmaps/network-transmit.png", F_OK) = -1 ENOENT
(No such file or directory)
access("/usr/share/pixmaps/network-transmit.xpm", F_OK) = -1 ENOENT
(No such file or directory)
access("/usr/share/pixmaps/network-transmit.svg", F_OK) = -1 ENOENT
(No such file or directory)

% sed -n 2914,2919p output

access("/usr/share/pixmaps/network-wireless-signal-good-symbolic.png",
F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/pixmaps/network-wireless-signal-good-symbolic.xpm",
F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/pixmaps/network-wireless-signal-good-symbolic.svg",
F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/pixmaps/network-wireless-connected-75-symbolic.png",
F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/pixmaps/network-wireless-connected-75-symbolic.xpm",
F_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/pixmaps/network-wireless-connected-75-symbolic.svg",
F_OK) = -1 ENOENT (No such file or directory)

To summarize, the following icons (other than a cursor icon which
seems perhaps to have been found) were searched for:

- /usr/share/pixmaps/preferences-system-network.(png|xpm|svg)
- /usr/share/pixmaps/network-transmit.(png|xpm|svg)
- /usr/share/pixmaps/network-wireless-signal-good-symbolic.(png|xpm|svg)
- /usr/share/pixmaps/network-wireless-connected-75-symbolic.(png|xpm|svg)

A run of `apt-file find preferences-system-network.png`, just the
first one, yields a lot of icon themes - all of them in
`/usr/share/icons` (as they should be!).

Is this fixed in 0.4.3-2?

Kind Regards,
Sofus Rose

#917924#15
Date:
2021-12-11 01:36:17 UTC
From:
To:
Behavior confirmed on Tint2 panel on openbox.

% nm-tray
QSystemTrayIcon::setVisible: No Icon set

Then strace nm-tray and grep the output to find only lines containing
"access" and "pixmaps" and ".svg" and "No such file" shows these as missing
icons:
access("/usr/share/pixmaps/network-transmit.svg", F_OK) = -1 ENOENT (No
such file or directory)
access("/usr/share/pixmaps/network-wired-symbolic.svg", F_OK) = -1 ENOENT
(No such file or directory)
access("/usr/share/pixmaps/network-wired-disconnected-symbolic.svg", F_OK)
= -1 ENOENT (No such file or directory)
access("/usr/share/pixmaps/dialog-information.svg", F_OK) = -1 ENOENT (No
such file or directory)
access("/usr/share/pixmaps/view-refresh.svg", F_OK) = -1 ENOENT (No such
file or directory)
access("/usr/share/pixmaps/document-edit.svg", F_OK) = -1 ENOENT (No such
file or directory)
access("/usr/share/pixmaps/help-about.svg", F_OK) = -1 ENOENT (No such file
or directory)
access("/usr/share/pixmaps/application-exit.svg", F_OK) = -1 ENOENT (No
such file or directory)
access("/usr/share/pixmaps/network-offline.svg", F_OK) = -1 ENOENT (No such
file or directory)
access("/usr/share/pixmaps/network-wired-disconnected.svg", F_OK) = -1
ENOENT (No such file or directory)

I manually symlinked network-wired.svg and
preferences-system-network-symbolic.svg into /usr/share/pixmaps/ so I could
have some icons at least, that's why they don't appear in the strace above

#917924#20
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

#917924#25
Date:
2022-04-06 15:30:44 UTC
From:
To:
Dear Maintainer,

The upstream author uploaded some failback icons, can you update the package?
And fix the wrong paths?