-
Notifications
You must be signed in to change notification settings - Fork 27
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
KDE application menu does not show icons until user logs out and in again #29
Comments
That cries "temporary workaround" (as in "bad hack"). Absolute paths aren't a solution here, they only seem to "fix" Unity(?)'s behavior... I'm not totally opposed to this change, but we should not sell it as a solution.
That doesn't quite remove the need to log out and in on a majority of desktop environments, most prominently KDE. Logging out and in is necessary just for getting the icons to show up anyway, right? New entries will show up in the launchers, they might just lack an icon. |
Well, the "solution" would be to implement something that replaces all the file-copying. So, let's agree on "workaround" that helps at least Unity and KDE Plasma.
Are you sure? On KDE Plasma I don't see any icons in the menus before logging out and logging in again. If I use absolute paths, I see them immediately without logging out and logging in. Fwiw, I think I heard that Snappy also uses absolute paths for that reason. |
Re. KDE Plasma, last time (pre-18.04) I tried it didn't work as intended. Doesn't mean it's not working now. IIRC the issue was in some caching of plasmashell, I filed issues for that. |
Is there something I could test on the latest unstable KDE neon developer edition? |
It does not work for me. If I boot KDE neon developer edition Live ISO with appimaged, then the icons are missing until I log out and log in again. This is highly annoying to me. Please use absolute paths to the icons, so that it works without having to log out and log in. |
Interestingly, the desktop files in |
Current cc @kossebau |
I vaguely remember the discussion to make Dolphin getting the icons for appimage files when the first appimages are added to the system. IIRC the issue was that Dolphin like many other programs from KDE uses the library kiconthemes, which only watches/scans icon directories which were present when a program like Dolphin was starting and as result the init of libkiconthemes in that process was done. |
On the actual issue: IMHO using a single pixmap icon file (if using an absolute path) will not be a good solution, and runs the chance to make the integration of appimages inperfect, in the worst case resulting in appimage apps always detectable by being the ones with blurry icons. Icons for applications can be shown in lots of different sizes, and having to downscale (or upscale for HiDpi) a given pixmap is not the best. Many icons have dedicated variants for smaller sizes (less details, adapted pixelgrid aligning). Which also means a single SVG icon file is not the solution to escape to, the same applies there as with prerendered pixel image files. It would be better to fix the workspace to pick up new icon versions installed to user local system dirs at runtime. Not picking up those is broken in general, not only in the context of appimages. |
Agree. It'd be the right thing to do to get this fixed in KDE but I don't know where to even start. And blurry icons are better than no icons... With "workspace" we mean the KDE launchers/menus (all three of them) but not the file manager (Dolphin) (where it works already). |
I'm about to rewrite this functionality in the C++ implementation. I'll keep the old workflow (icon name only) until a solution is found. |
Agree. We should, however, inform the KDE team through their appropriate channels about the issue. Added a comment at https://bugs.kde.org/show_bug.cgi?id=397109#c6. Maybe @kossebau can help to get the attention of the right people within the Plasma team. Thank you. |
@probonopd Any chance you started the Dolphin instance only after those appimages had been added (and triggered the system integration of appimaged, incl. creating the .local/share/icons/hicolor directories)? Could you repeat what you did, with a clean system without .local/share/icons/hicolor, and an already running Dolphin instance showing the applications directory where the appimages files are then placed? |
It's a bit hard to understand what happens in which order during system startup, but this is my setup:
Do you want me to repeat this without the directories being pre-created? |
Hm, I am confused by the comment in the linked code: So right after neon having been started, i.e the Plasma workspace being up, does the directory ".local/share/icons/hicolor" exist before the first appimage is added? (sorry, no time yet to try to reproduce) |
I have commented out the code I linked that pre-generates the
The only thing is that I don't know when in the overall system startup this happens exactly ( I don't know how |
When integrating, we should rewrite desktop files to use an absolute Icon= path. This will
The text was updated successfully, but these errors were encountered: