srevinsaju / zap

:zap: Delightful AppImage package manager
https://zap.srev.in
MIT License
497 stars 20 forks source link

Icons missing in the Application Library/Launcher #53

Open ctarx opened 2 years ago

ctarx commented 2 years ago

Icons still missng after logout+login with every installed app. I also tried to restart gnome-shell and update-desktop-database ~/.local/share/applications but nothing helps.

OS Pop!_OS 21.10 DE GNOME 40.5

Installed AppImages: Krita WowUp bottles

Previously I was using an AppImageLauncher and icons were showing up.

srevinsaju commented 2 years ago

Can you give the zap version information? zap --version?

ctarx commented 2 years ago

Zap version Build:v2.2.0.49.g18a4689 1638175172

srevinsaju commented 2 years ago

Can you show me the output of

cat ~/.local/share/applications/krita.desktop
ctarx commented 2 years ago

cat ~/.local/share/applications/Krita.desktop

Name=Krita (AppImage)
Name[af]=Krita
Name[ar]=كريتا
Name[bg]=Krita
Name[br]=Krita
Name[bs]=Krita
Name[ca]=Krita
Name[ca@valencia]=Krita
Name[cs]=Krita
Name[cy]=Krita
Name[da]=Krita
Name[de]=Krita
Name[el]=Krita
Name[en_GB]=Krita
Name[eo]=Krita
Name[es]=Krita
Name[et]=Krita
Name[eu]=Krita
Name[fi]=Krita
Name[fr]=Krita
Name[fy]=Krita
Name[ga]=Krita
Name[gl]=Krita
Name[he]=Krita
Name[hi]=केरिता
Name[hne]=केरिता
Name[hr]=Krita
Name[hu]=Krita
Name[ia]=Krita
Name[is]=Krita
Name[it]=Krita
Name[ja]=Krita
Name[kk]=Krita
Name[ko]=Krita
Name[lt]=Krita
Name[lv]=Krita
Name[mr]=क्रिटा
Name[ms]=Krita
Name[nb]=Krita
Name[nds]=Krita
Name[ne]=क्रिता
Name[nl]=Krita
Name[nn]=Krita
Name[pl]=Krita
Name[pt]=Krita
Name[pt_BR]=Krita
Name[ro]=Krita
Name[ru]=Krita
Name[se]=Krita
Name[sk]=Krita
Name[sl]=Krita
Name[sv]=Krita
Name[ta]=கிரிட்டா
Name[tg]=Krita
Name[tr]=Krita
Name[ug]=Krita
Name[uk]=Krita
Name[uz]=Krita
Name[uz@cyrillic]=Krita
Name[wa]=Krita
Name[xh]=Krita
Name[x-test]=xxKritaxx
Name[zh_CN]=Krita
Name[zh_TW]=Krita
Exec=Krita %U
GenericName=Digital Painting
GenericName[ar]=رسم رقميّ
GenericName[bs]=Digitalno Bojenje
GenericName[ca]=Dibuix digital
GenericName[ca@valencia]=Dibuix digital
GenericName[cs]=Digitální malování
GenericName[da]=Digital tegning
GenericName[de]=Digitales Malen
GenericName[el]=Ψηφιακή ζωγραφική
GenericName[en_GB]=Digital Painting
GenericName[es]=Pintura digital
GenericName[et]=Digitaalne joonistamine
GenericName[eu]=Margolan digitala
GenericName[fi]=Digitaalimaalaus
GenericName[fr]=Peinture numérique
GenericName[gl]=Debuxo dixital
GenericName[hi]=डिजिटल चित्रकारी
GenericName[hu]=Digitális festészet
GenericName[ia]=Pintura Digital
GenericName[it]=Pittura digitale
GenericName[ja]=デジタルペインティング
GenericName[kk]=Цифрлық сурет салу
GenericName[ko]=디지털 페인팅
GenericName[lt]=Skaitmeninis piešimas
GenericName[mr]=डिजिटल पेंटिंग
GenericName[nb]=Digital maling
GenericName[nl]=Digitaal schilderen
GenericName[nn]=Digital teikning
GenericName[pl]=Malowanie cyfrowe
GenericName[pt]=Pintura Digital
GenericName[pt_BR]=Pintura digital
GenericName[ru]=Цифровая живопись
GenericName[sk]=Digitálne maľovanie
GenericName[sl]=Digitalno slikanje
GenericName[sv]=Digital målning
GenericName[tr]=Sayısal Boyama
GenericName[ug]=سىفىرلىق رەسىم سىزغۇ
GenericName[uk]=Цифрове малювання
GenericName[x-test]=xxDigital Paintingxx
GenericName[zh_CN]=数字绘画程序
GenericName[zh_TW]=數位繪畫
MimeType=application/x-krita;image/openraster;application/x-krita-paintoppreset;
Comment=Digital Painting
Comment[ar]=رسم رقميّ
Comment[bs]=Digitalno Bojenje
Comment[ca]=Dibuix digital
Comment[ca@valencia]=Dibuix digital
Comment[cs]=Digitální malování
Comment[da]=Digital tegning
Comment[de]=Digitales Malen
Comment[el]=Ψηφιακή ζωγραφική
Comment[en_GB]=Digital Painting
Comment[es]=Pintura digital
Comment[et]=Digitaalne joonistamine
Comment[eu]=Margolan digitala
Comment[fi]=Digitaalimaalaus
Comment[fr]=Peinture numérique
Comment[gl]=Debuxo dixital.
Comment[hi]=डिजिटल चित्रकारी
Comment[hu]=Digitális festészet
Comment[ia]=Pintura Digital
Comment[it]=Pittura digitale
Comment[ja]=デジタルペインティング
Comment[kk]=Цифрлық сурет салу
Comment[ko]=디지털 페인팅
Comment[lt]=Skaitmeninis piešimas
Comment[mr]=डिजिटल पेंटिंग
Comment[nb]=Digital maling
Comment[nl]=Digitaal schilderen
Comment[nn]=Digital teikning
Comment[pl]=Malowanie cyfrowe
Comment[pt]=Pintura Digital
Comment[pt_BR]=Pintura digital
Comment[ru]=Цифровая живопись
Comment[sk]=Digitálne maľovanie
Comment[sl]=Digitalno slikanje
Comment[sv]=Digitalt målningsverktyg
Comment[tr]=Sayısal Boyama
Comment[ug]=سىفىرلىق رەسىم سىزغۇ
Comment[uk]=Цифрове малювання
Comment[x-test]=xxDigital Paintingxx
Comment[zh_CN]=自由开源的专业数字绘画程序
Comment[zh_TW]=數位繪畫
Type=Application
Icon=krita
Categories=Qt;KDE;Graphics;2DGraphics;RasterGraphics;
X-KDE-NativeMimeType=application/x-krita
X-KDE-ExtraNativeMimeTypes=
StartupNotify=true
X-Krita-Version=28
StartupWMClass=krita
# Always be the preferred handler for .kra files
InitialPreference=99
X-AppImage-Integrate=
X-Zap-Id=Krita
ctarx commented 2 years ago

I just reinstalled krita.appimage with krita name (not a capital K) and icon shows up.

srevinsaju commented 2 years ago

Another question, are you on wayland?

ctarx commented 2 years ago

not a wayland

srevinsaju commented 2 years ago

What is the output of echo $XDG_SESSION_TYPE just to confirm, ?

ctarx commented 2 years ago

x11

srevinsaju commented 2 years ago

Hmm, looks like a bug in zap thanks for creating the issue. Maybe we should automatically correct the appname.

ctarx commented 2 years ago

I'll check how wowup is named by AppImageLauncher, because I tried with few options: WowUp and wowup but still no icons.

srevinsaju commented 2 years ago

May do cat ~/.local/share/applications/wowup.desktop | grep Icon and use the output of the following as the appname should be a temporary fix.

ctarx commented 2 years ago

cat ~/.local/share/applications/wowup.desktop | grep Icon Icon=wowup

zap list

Unfortunately still no icon.

zap wowup.desktop

Name=WowUp (AppImage)
Exec=wowup %U
Terminal=false
Type=Application
Icon=wowup
StartupWMClass=WowUp
X-AppImage-Version=2.5.2
Comment=World of Warcraft addon updater
Categories=Game;
X-AppImage-Integrate=
X-Zap-Id=wowup

AppImageLauncher appimagekit_18aba2b16a40ca404401ecb78d66474d-wowup.desktop

Name=WowUp (2.5.2)
Exec=/home/ctarx/Applications/WowUp-2.5.2_b82f4132ea0cf153ffacf835912e0802.AppImage --no-sandbox %U
Terminal=false
Type=Application
Icon=appimagekit_18aba2b16a40ca404401ecb78d66474d_wowup
StartupWMClass=WowUp
X-AppImage-Version=2.5.2
Comment=World of Warcraft addon updater
Categories=Game;
TryExec=/home/ctarx/Applications/WowUp-2.5.2_b82f4132ea0cf153ffacf835912e0802.AppImage
X-AppImage-Old-Icon=wowup
X-AppImage-Old-Name=WowUp
X-AppImage-Identifier=18aba2b16a40ca404401ecb78d66474d
Actions=Remove;
X-AppImageLauncher-Version=2.2.0 (git commit 0f91801), built on 2020-10-29 08:08:13 UTC

[Desktop Action Remove]
Name=Remove AppImage from system
Icon=AppImageLauncher
Exec=/usr/lib/x86_64-linux-gnu/appimagelauncher/remove "/home/ctarx/Applications/WowUp-2.5.2_b82f4132ea0cf153ffacf835912e0802.AppImage"
ctarx commented 2 years ago

I fixed it with changing an icon path Icon=/home/ctarx/.local/share/zap/v2/icons/wowup.png

salverde commented 1 year ago

@ctarx so you fixed the entire icon issue with just putting full path? Im having exact issue here and its driving me nuts! I'm running Pop!OS 22.04. I've tried re-installing AppImageLauncher-lite (this time) in addition to zap to try to mitigate the issue... no avail.

looking forward to your insight....

ctarx commented 1 year ago

@salsysd Yes, if I remember correctly I changed to full path and then the icons appeared. Unfortunately, after updating the appimage, icons disappeared again. I don't use many appimmages, so just moved to AppImageLauncher. Zap is a great tool and I love to "live in terminal", but changing icons every time manually is too annoying.