wingpanel-indicator-ayatana icon indicating copy to clipboard operation
wingpanel-indicator-ayatana copied to clipboard

Flatpak app can not show the icon correctly

Open loaden opened this issue 3 years ago • 10 comments

Install some app from flatpak repo have indicator in the wingpanel, e.g. flatpak install com.obsproject.Studio or: flatpak install org.ksnip.ksnip After run the app, will can not show the correct icon on the panel. just like this: 2021-10-06 11-22-36 or this: 2021-10-06 11-21-50

loaden avatar Oct 06 '21 03:10 loaden

By the way, it's does not work in systemd-nspawn apps too. Sounds like it's can not find the icon if the app come from a container. e.g. Flatpak, Snap, Systemd-nspawn, LXC something.

loaden avatar Oct 06 '21 03:10 loaden

But some flatpak icons appear in the panel. Did you try a reboot or could you try it please ? What I fear, is a problem with authorizations.

Lafydev avatar Oct 06 '21 06:10 Lafydev

Reboot does not help. what's the problem about authorizations? they are all opensource.

loaden avatar Oct 06 '21 10:10 loaden

Thanks for testing the reboot, sorry it didn't help. Yes but Flatpak versions comes with a list of authorizations : directory and files access, did you try the debian version (.DEB) of ksnip/ksnip ?

Lafydev avatar Oct 06 '21 12:10 Lafydev

The DEB version is fine both with obs or ksnip. I've tried that before.

loaden avatar Oct 06 '21 12:10 loaden

Thank you, so it's a lack of authorization, the access to icons is broken with flatpak, and I can't do anything. Sorry. But you can perhaps open an issue in obs and ksnip.

Lafydev avatar Oct 06 '21 13:10 Lafydev

But in legacy tray, e.g. stalonetray or trayer, They can access the icons in flatpak apps. only wingpanel-indicator can not. so, could you please have a try?

loaden avatar Oct 07 '21 00:10 loaden

I don't know why, but Steam icons show up just fine. It came from Flatpak too.

loaden avatar Oct 10 '21 14:10 loaden

@Lafydev Hi fcitx developer here. I think the reason is not relevant to flatpak. New version of fcitx use IconPixmap to pass some of the icon. I briefly grep through the code in https://github.com/AyatanaIndicators/libayatana-appindicator/ and didn't find anything relevant. So likely it's not supported by libayatana-appindicator.

wengxt avatar Dec 29 '21 19:12 wengxt

Opened a issue in libayatana-appindicator https://github.com/AyatanaIndicators/libayatana-appindicator/issues/47

wengxt avatar Dec 29 '21 19:12 wengxt