Version: 0.4 (using KDE KDE 3.1) Installed from: SuSE RPMs OS: Linux items in Kmenu are always aphabetically sorted, regardless of what I put in in kmenuedit
I am not sure if this is what is intended or not, but it is very annoying. kmenuedit should display the menu items as they would in the actual menu. I also do not think that alpha sort is the best here, but instead the user should be able to specify the order (but perhaps that is not a kmenuedit problem).
This may be broken by the vfolder implementation, but for normal directories, you can add SortOrder in the .directory file. This would be the way to implement persistent ordering in kmenuedit.
Created attachment 5757 [details] Sorts the list This patch makes the items aphabetically sorted below the folders, as they are shown in KMenu.
That patch is just ignoring the problem. Like I stated previously, alpha sort is not the best here. Alpha sort is OK for apps (usually), but for things like ssh-terms and custom thinks of that like, it is just annoying. For instance, I like to have sub-folders of machine names with different ssh profiles under each. The machines should be ordered how I have them in kmenuedit (by type - web, DB, misc) and not by alpha. I just end up prefixing each with a number as a hack. So, better is to just keep the order given in kmenuedit. Perhaps using the .directory file?
Brian Rectanus: Well, I don't know what you actually mean. My patch makes the menu-tree auto-sorted. It means that if you move or create an item the list will be sorted. Does not KMenu show items in this way too, or is there a more sophisticated algorithm used by KMenu?
The bug is that no matter what order the menuitems are in kmenuedit, they are always sorted in kmenu. So, kmenuedit needs to pass the order to kmenu. We should not be limited to the list always being alph-sorted. You patch makes kmenuedit be sorted like kmenu - this does not fix the bug, but rather just limits how kmenuedit functions (or should function). From comment #2, it seems that you can use .directory files to pass this order?
Ok. Now I understand. My patch fits better for bug #26419. In my opinion KMenuEdits items should be autosorted as long as Kicker sort items too. The situation now only confuse new KDE-users.
kmenuedit should follow the currently defined sort order and re-export the sort order when changes are made.
*** Bug 32090 has been marked as a duplicate of this bug. ***
*** Bug 26419 has been marked as a duplicate of this bug. ***
Fixed for KDE 3.3