Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result seems OK but icon is not set #16

Open
ricciolino opened this issue May 4, 2024 · 2 comments
Open

Result seems OK but icon is not set #16

ricciolino opened this issue May 4, 2024 · 2 comments

Comments

@ricciolino
Copy link

image

I just want to substitute the default "gnome-terminal" icon with a custom PNG...

I am executing this

./xseticon -id 0x08208e70 /home/ricciolino/.local/share/pixmaps/dmesg.png

Result seems ok .... but icon of gnome-terminal is not changed...

image

Why this ?

@xeyownt
Copy link
Owner

xeyownt commented May 8, 2024

Strange indeed.

Just tried on my Debian Bookworm and it doesn't work either.

Maybe icon management changed in recent distributions.

@ricciolino
Copy link
Author

As a workaround I was able to implement the following trick (e.g. launching a gnome-terminal instance from a *.desktop launcher file):

[Desktop Entry]
Name=Live Dmesg
Exec=gnome-terminal --title="Live dmesg" -- bash -c "echo \"Opening dmesg...\"; sleep 0.3; xdotool search --name \"Live dmesg\" set_window --class \"LiveDmesgClass\"; sleep 0.3; sudo dmesg -w"
Icon=/home/ricciolino/.local/share/pixmaps/dmesg.png
Type=Application
StartupNotify=true
StartupWMClass=LiveDmesgClass

As you can see in the "Exec" field, by using the xdotool tool, I am forcing the just opened terminal instance to set its WMClass to match the StartupWMClass launcher property.
Doing so, the launcher icon will match the window icon shown in the "workspace view" and "Alt+Tab switcher view" specified by "Icon" property /home/ricciolino/.local/share/pixmaps/dmesg.png.

--> App search view:
image

--> Workspace view:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants