LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2007, 10:08 PM   #1
Doug Vitale
Member
 
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69

Rep: Reputation: 16
Alphabetize Kmenu items?


How do you quickly put the items in the Kmenu in alphabetical order? In Windows you would right click on the menu and choose "Sort by name" but I don't see any such option in KDE Menu Editor. The items in my "System" submenu used to be alphabetically arranged. Thanks.
 
Old 10-15-2007, 01:49 AM   #2
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Rep: Reputation: 15
I'm not sure that you can. There are no obvious options in the K Menu editor or in the K Menu itself. (I could be wrong, but I couldn't find anything.) Of course, you can manually rearrange items, categories, and subcategories using the K Menu Editor without too much trouble.

It might be possible to write a script to automatically rearrange the order of items by scanning and rewriting the K Menu config file (though I don't know what that file is, nor do I know the first thing about it's format).

Last edited by TheMusicGuy; 10-15-2007 at 01:50 AM.
 
Old 10-16-2007, 05:47 PM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Unfortunately, it's not a file, but files. IIRC, at least 3 layers -- i.e. priorities -- of them. They point to each other, include each other, & supercede each other. A tangled web of XML.

This makes the system very flexible & powerful, but very, very hard to figure out. Go look at kde.org.

If you want to see why I threw up hands when I last looked, start w/ these:
~/.config/menus/ -- esp.
~/.config/menus/debian-menu.menu
~/.kde/share/config/ -- esp.
~/.kde/share/config/kdeglobals
~/.local/share/applications/
 
Old 10-17-2007, 01:47 PM   #4
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Rep: Reputation: 15
While we're on the subject...

The other day I deleted some config-related files and managed to seriously mess up my global keyboard shortcuts and erase all custom K Menu entries. It effectively filtered-out anything that wasn't added by a package, etc. That makes me think that manual amendments (I.E. any icons you create or move, or "tweak" through K Menu Edit) are "superimposed" on top of another menu to create the menu that you see in the K Menu. So, yeah, there's definitely some kind of weird hierarchy going on.

I don't remember exactly what I deleted. I was trying to forcibly remove a few rogue icons from the Quick Launcher that kept randomly popping up again after deleting them, even though their respective icons in the K Menu no longer existed.

I hate to say it, but I kind of wish the K Menu and Quick Launcher worked more like the Window$ start menu. (eg. icons in the start menu (K Menu) correspond to nothing more than shortcuts (.lnk or .desktop files) in a folder.) Having all these config files is confusing.
 
Old 10-20-2007, 08:41 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Whether you call it "superimposed", "included", "merged", or talk about "levels", the (current [XML]) KDE menuing system is flexible, powerful, complicated, & almost impossible to trace back to the source text files.
 
Old 10-20-2007, 02:45 PM   #6
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Rep: Reputation: 15
Heh, yeah.
Do you know where the format and relationship of those files is/are documented?
 
Old 10-23-2007, 06:00 AM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Start at http://kde.org/documentation/ & explore. If you find anything applicable, please post the link.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can OpenOffice alphabetize? joshknape Linux - Software 10 08-02-2010 08:50 AM
Can OpenOffice alphabetize? newbiesforever Linux - Software 1 03-08-2007 09:44 PM
Missing Kmenu Items after KDE 3.5.1 Upgrade Thin SUSE / openSUSE 2 03-06-2006 04:10 PM
alphabetize my list c++ AquamaN Programming 8 10-25-2005 02:20 AM
Adding items to kmenu in Fedora Core 2 gypsy_rabbi Linux - Newbie 5 09-17-2004 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration