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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-14-2007, 10:08 PM
|
#1
|
Member
Registered: Feb 2007
Distribution: Fedora 10/Mint 5 KDE
Posts: 69
Rep:
|
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.
|
|
|
10-15-2007, 01:49 AM
|
#2
|
Member
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127
Rep:
|
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.
|
|
|
10-16-2007, 05:47 PM
|
#3
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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/
|
|
|
10-17-2007, 01:47 PM
|
#4
|
Member
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127
Rep:
|
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.
|
|
|
10-20-2007, 08:41 AM
|
#5
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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.
|
|
|
10-20-2007, 02:45 PM
|
#6
|
Member
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127
Rep:
|
Heh, yeah.
Do you know where the format and relationship of those files is/are documented?
|
|
|
10-23-2007, 06:00 AM
|
#7
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
Start at http://kde.org/documentation/ & explore. If you find anything applicable, please post the link.
|
|
|
All times are GMT -5. The time now is 11:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|