| Summary: | kf5 doesn't honor XDG_MENU_PREFIX at all | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kded | Reporter: | Franklin Weng <franklin> |
| Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | kdelibs-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.28.0 | ||
| Target Milestone: | --- | ||
| Platform: | Debian stable | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Screenshot -- wrong behavior
Screenshot -- the correct menu |
||
|
Description
Franklin Weng
2018-12-20 12:12:51 UTC
Created attachment 117024 [details]
Screenshot -- wrong behavior
The environment variable XDG_MENU_PREFIX=ezgo-
but the application menu is still kf5 menu.
(Attach another image for comparing later)
Created attachment 117025 [details]
Screenshot -- the correct menu
The correct menu was shown when I create a symbolic link "kf5-applications.menu" pointing to "ezgo-applications.menu", i.e., the system thinks my ezgo-applications.menu is kf5 menu.
XDG_MENU_PREFIX does not matter at all.
I see XDG_MENU_PREFIX in locateMenuFile(), see https://cgit.kde.org/kservice.git/tree/src/sycoca/vfolder_menu.cpp#n731 But I am not sure if what you see is related to kservice or kded. (In reply to Christoph Feck from comment #3) > I see XDG_MENU_PREFIX in locateMenuFile(), see > https://cgit.kde.org/kservice.git/tree/src/sycoca/vfolder_menu.cpp#n731 > > But I am not sure if what you see is related to kservice or kded. I've searched the code for many times, and didn't see anywhere forcing XDG_MENU_PREFIX to be "kf5-" either. However, even the environment variable is correctly set (to other value), kf5 would still look for kf5-applications.menu only. It does not act like this when in KDE 4. |