Bug 443912

Summary: InitialPreference entry in .desktop service menus files is not working anymore
Product: [Applications] dolphin Reporter: pankracypl
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 21.08.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description pankracypl 2021-10-17 21:01:32 UTC
SUMMARY
Actions menus are ignoring InitialPreference entry in the service menu files (/.local/share/kservices5/ServiceMenus/). It was working for many years before.

STEPS TO REPRODUCE
1. Grab KDE Neon (https://neon.kde.org/download) user edition and spin it in vm.
2. Add "InitialPreference=X" entry to your service menus .desktop files (where x is  number to give order) under "[Desktop Entry]". 
3. Observe that order of menu items is not changing.   

OBSERVED RESULT
InitialPreference is ignored. All service menu items are not in order defined by user.

EXPECTED RESULT
I can sort my actions menu by giving number in InitialPreference under 
[Desktop Entry]. It was working before for so long.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon User 20.04
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Probably bug is not located in dolphin itself, but other component related to reading servicemenu files.