Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-06-18 18:47:02

wowomgilovexfce
Member
Registered: 2023-06-18
Posts: 5

app icons

i recently switched from cinnamon to xfce and im really enjoying it so far. however. i have encountered an annoying issue and im not sure how to fix it. some apps i have installed will not show their icons on the docklike taskbar and instead appear as settings icons.
taskbar

when i hover over the app it shows the correct icon next to the name on the preview so im not sure what the issue is here. please help!

Offline

#2 2023-06-18 21:04:40

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

Re: app icons

Hello and welcome.

Which distro, version of Xfce and version of xfce4-docklike-plugin are you running?


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 2023-06-18 21:26:23

wowomgilovexfce
Member
Registered: 2023-06-18
Posts: 5

Re: app icons

ToZ wrote:

Hello and welcome.

Which distro, version of Xfce and version of xfce4-docklike-plugin are you running?

i am running arch linux, Xfce version 4.18 and xfce4-docklike-plugin version 0.4.1

Offline

#4 2023-06-19 01:19:21

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

Re: app icons

Is it just the game Hollow Knight, or is it other apps, in if so, which apps. Can you post back the Hollow Night .desktop file (either in /usr/share/applications or ~/.local/share/applications?

The docklike plugin should get the icon from the desktop file, or the StartupWMClass setting. See: https://gitlab.xfce.org/panel-plugins/x … s.cpp#L127.


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

#5 2023-06-19 13:23:04

wowomgilovexfce
Member
Registered: 2023-06-18
Posts: 5

Re: app icons

ToZ wrote:

Is it just the game Hollow Knight, or is it other apps, in if so, which apps. Can you post back the Hollow Night .desktop file (either in /usr/share/applications or ~/.local/share/applications?

The docklike plugin should get the icon from the desktop file, or the StartupWMClass setting. See: https://gitlab.xfce.org/panel-plugins/x … s.cpp#L127.

No this also happens with other apps. The only other one I can remember is AudioRelay which i use to stream my PC's audio to my phone.


Here are both of the .desktop files for the apps

 [Desktop Entry]
Name=Hollow Knight
Comment=Play this game on Steam
Exec=steam steam://rungameid/367520
Icon=steam_icon_367520
Terminal=false
Type=Application
Categories=Game; 
 [Desktop Entry]
Name=AudioRelay
Comment=Stream your PC audio to your phone
Comment[zh_CN]=将电脑音频流式传输到手机
Exec=audiorelay
Icon=audiorelay
Terminal=false
Type=Application
Categories=Audio;AudioVideo;Utility
MimeType= 

Offline

#6 2023-06-19 14:18:11

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

Re: app icons

In the case of Hollow Knight, I think it may be because it can't find the icon. Try copying steam_icon_367520 to ~/.icons to see if that makes a difference.

If not, add:

StartupWMClass=steam_icon_367520

...to the desktop file.

Note: you might need to restart the panel:

xfce4-panel -r

For the audiorelay example, does your icon theme have an "audiorelay" app icon?

Edit: for audiorelay, running xprop on that window returns:

WM_CLASS(STRING) = "com-azefsw-audioconnect-desktop-app-MainKt", "com-azefsw-audioconnect-desktop-app-MainKt"

...so I added:

StartupWMClass=com-azefsw-audioconnect-desktop-app-MainKt

...to /usr/share/applications/audiorelay.desktop and the icon showed up.

I'm guessing something similar for Hollow Knight will also work.

Last edited by ToZ (2023-06-19 14:30:52)


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

#7 2023-06-19 15:04:52

wowomgilovexfce
Member
Registered: 2023-06-18
Posts: 5

Re: app icons

I'm guessing something similar for Hollow Knight will also work.

thank you, i will try this when im at my pc next. will i have to do this manually for each broken icon i see?

Offline

#8 2023-06-19 16:51:00

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

Re: app icons

wowomgilovexfce wrote:

I'm guessing something similar for Hollow Knight will also work.

thank you, i will try this when im at my pc next. will i have to do this manually for each broken icon i see?

Probably, yes.


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

#9 2023-06-19 23:27:17

wowomgilovexfce
Member
Registered: 2023-06-18
Posts: 5

Re: app icons

ToZ wrote:

In the case of Hollow Knight, I think it may be because it can't find the icon. Try copying steam_icon_367520 to ~/.icons to see if that makes a difference.

If not, add:

StartupWMClass=steam_icon_367520

...to the desktop file.

Note: you might need to restart the panel:

xfce4-panel -r

For the audiorelay example, does your icon theme have an "audiorelay" app icon?

Edit: for audiorelay, running xprop on that window returns:

WM_CLASS(STRING) = "com-azefsw-audioconnect-desktop-app-MainKt", "com-azefsw-audioconnect-desktop-app-MainKt"

...so I added:

StartupWMClass=com-azefsw-audioconnect-desktop-app-MainKt

...to /usr/share/applications/audiorelay.desktop and the icon showed up.

I'm guessing something similar for Hollow Knight will also work.


this worked for audio relay but not hollow knight. where could i find steam_icon_367520 to put into the icons folder

EDIT: in regards to the xprop command, i am unsure how to use it? sorry

Last edited by wowomgilovexfce (2023-06-19 23:34:12)

Offline

#10 2023-06-20 00:10:58

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

Re: app icons

wowomgilovexfce wrote:

EDIT: in regards to the xprop command, i am unsure how to use it? sorry

Hopefully you can run Hollow Knight in window mode. With it running, in a terminal window type:

xprop | grep CLASS

...and press enter. The cursor will change to a cross. Click on the Hollow Knight window and there will be output in the terminal window showing the class (if its set).


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

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 10 queries executed - Memory usage: 575.16 KiB (Peak: 592 KiB) ]