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

some software cannot show icon with using appimage format file #170

Open
newyorkthink opened this issue Apr 22, 2024 · 12 comments
Open

some software cannot show icon with using appimage format file #170

newyorkthink opened this issue Apr 22, 2024 · 12 comments

Comments

@newyorkthink
Copy link

when i using alttab to select software item.

like this:
image
they are all appimage format file

but some software cannot display icon , some software has normal.

they have full icon , but they cannot show:
example for stacer
image
image

and 16x16 32x32 ...

but alttab cannot show it

@sagb
Copy link
Owner

sagb commented Apr 22, 2024

Please follow this instruction: https://github.com/sagb/alttab/blob/master/doc/icons.md

@newyorkthink
Copy link
Author

Please follow this instruction: https://github.com/sagb/alttab/blob/master/doc/icons.md

i try use this , but it not work show

image

@sagb
Copy link
Owner

sagb commented Apr 22, 2024

None of the icons (including those displayed correctly) are loaded from files:

g

Let's try to realize why. Run xprop | grep CLASS and click on qemu window. Show the xprop output.

@newyorkthink
Copy link
Author

image

@newyorkthink
Copy link
Author

this is too

@newyorkthink
Copy link
Author

image

@sagb
Copy link
Owner

sagb commented Apr 22, 2024

for class in qemu qemu-system-x86_64 remote_viewer ; do
    find \
    /usr/share/icons/hicolor/*x*/apps/ \
    /usr/local/share/icons/hicolor/*x*/apps/ \
    ~/.icons/hicolor/*x*/apps/ \
    ~/.local/share/icons/hicolor/*x*/apps/ \
    /usr/share/pixmaps/ \
    ~/.local/share/pixmaps/ \
    -iname $class\* 2>/dev/null
done

@newyorkthink
Copy link
Author

for class in qemu qemu-system-x86_64 remote_viewer ; do
    find \
    /usr/share/icons/hicolor/*x*/apps/ \
    /usr/local/share/icons/hicolor/*x*/apps/ \
    ~/.icons/hicolor/*x*/apps/ \
    ~/.local/share/icons/hicolor/*x*/apps/ \
    /usr/share/pixmaps/ \
    ~/.local/share/pixmaps/ \
    -iname $class\* 2>/dev/null
done

i using the appimage file , the system not have they.

and my browser file is appimage to, they can show

@newyorkthink
Copy link
Author

image

@newyorkthink
Copy link
Author

image
image

@sagb
Copy link
Owner

sagb commented Apr 22, 2024

You can fix your problem by copying suitable qemu.png and remote_viewer.png (find them anywhere) in any directory from the script above, for example: /usr/share/icons/hicolor/128x128/apps/qemu.png

@sagb
Copy link
Owner

sagb commented Apr 22, 2024

If there is no such directory, create it.

sagb added a commit that referenced this issue May 11, 2024
similar to default, but prefer equal-sized icon from file,
for better control over icon content: you can override
X11 property icon by file even if the former matches size exactly.
related: #170, 163.
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