Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-06-14 22:20:49

aalbani
Member
Registered: 2023-03-30
Posts: 28

Find out icon name

Is there a command to find out which icon the network manager uses in the systray?

Offline

#2 2024-06-15 10:58:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,313

Re: Find out icon name

I don't know of any direct way to identify the icon being used, its usually trial and error to figure it out. However, the network manager is a separate application (assuming that you are using nm-applet). In that case you could use strace to see what files are successfully accessed/opened.

First, kill the application:

pkill nm-applet

Then run it through strace like this:

strace -e trace=openat nm-applet 2>&1 | grep -v ENOENT

...and at the bottom of the output, you will see something like:

openat(AT_FDCWD, "/usr/share/icons/Qogir/16/panel/nm-signal-75.svg", O_RDONLY|O_CLOEXEC) = 16
...
openat(AT_FDCWD, "/usr/share/icons/Qogir/16/panel/nm-secure-lock.svg", O_RDONLY|O_CLOEXEC) = 16
openat(AT_FDCWD, "/usr/share/icons/Qogir/16/panel/nm-signal-50.svg", O_RDONLY|O_CLOEXEC) = 16
openat(AT_FDCWD, "/usr/share/icons/Qogir/16/panel/nm-signal-100.svg", O_RDONLY|O_CLOEXEC) = 16
openat(AT_FDCWD, "/usr/share/icons/Qogir/16/panel/nm-signal-25.svg", O_RDONLY|O_CLOEXEC) = 16

Those are the icons being used.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-06-15 13:35:12

aalbani
Member
Registered: 2023-03-30
Posts: 28

Re: Find out icon name

That worked...
A thousand thanks

Offline

Board footer

Powered by FluxBB