sagb / alttab

The task switcher for minimalistic window managers or standalone X11 session
GNU General Public License v3.0
382 stars 45 forks source link

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

Open newyorkthink opened 2 months ago

newyorkthink commented 2 months ago

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 commented 2 months ago

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

newyorkthink commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

image

newyorkthink commented 2 months ago

this is too

newyorkthink commented 2 months ago

image

sagb commented 2 months ago
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 commented 2 months ago
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 commented 2 months ago

image

newyorkthink commented 2 months ago

image image

sagb commented 2 months ago

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 commented 2 months ago

If there is no such directory, create it.