LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-27-2004, 10:24 PM   #1
Quattro
LQ Newbie
 
Registered: Sep 2003
Location: Richardson, TX
Distribution: Mandrake 9.1
Posts: 5

Rep: Reputation: 0
How do I manually edit the K-Menu?


How do I manually edit the K-Menu, without using KMenuEdit?

Every time I use KMenuEdit, it corrupts my K-Menu somehow...entire submenus go missing frequently. The only way I can solve it is to delete my user account and start over from scratch. Until the next time KMenuEdit FUBARs my menu, that is.

I use Mandrake Linux 10.0 Community, with KDE 3.2

I have Mandrake set to Use Original Menu--I don't use the MDK-style menus. I have my own personal menu layout I use, based on KDE's.
 
Old 03-28-2004, 04:57 PM   #2
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
I'm just guessing, but here goes...

If you look in your home directory, there should be a directory called ".menu"

In that directory are text files that specify your menus...

I have one called "added_by_menudrake", but the names of the files don't appear to be important, it's what's in them that seems to count...

For instance, my entry in "added_by_menudrake" for XBoard FICS is:

?package(menu): command="/usr/bin/xboard -ics -icshost freechess.org -icslogon .icsrc -icsinput -colorize -coords -highlight" icon="strategy_section.png" needs="text" title="XBoard FICS" section="Amusement/Boards/" longtitle="Online Chess" charset="ISO-8859-1"

So it appears the format is:

?package(<packagename>): command="<command+args>" icon="<icon file>" needs="text" title="<title>" section="<menusection>" longtitle="<title>" charset="ISO-8859-1"

You could try editing the files in ".menu" directory to add or remove entries similar to the above...

I haven't done this, so backup all those files before you give it a shot...
 
Old 03-28-2004, 08:00 PM   #3
KWTm
Member
 
Registered: Jan 2004
Distribution: Kubuntu 10.04 (Dell Linux-preinstalled laptop + a desktop); Maemo 5 (N900 phone computer)
Posts: 116

Rep: Reputation: 21
Ohh, it's in ~.menu/ !!

Thank you for bringing that to my attention! I had never noticed the ~.menu/ directory, and had always thought that the KDE menus were just stored in ~.kde/share/applnk-mdk (for my Mandrake 9.x system). The menus have repeatedly gone wonky on me, and I've just spent about an hour trying to copy differing versions of that directory tree to see what worked and what didn't work.

Now, here's a question: where the **** can we get documentation on things like .menu and how KDE works, instead of just diddling around and trying to notice things like that? I mean, I enjoy Linux tinkering as much as the next guy, but there comes a point when, dammit, I just have to start USING my computer for _real_ stuff, instead of trying to figure it out.
 
Old 03-30-2004, 02:46 AM   #4
Quattro
LQ Newbie
 
Registered: Sep 2003
Location: Richardson, TX
Distribution: Mandrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks...I'll have to have a look around there when I get my system working properly again.
 
  


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
How to manually modify the content of the K menu in KDE? pujolasdf Linux - Software 2 03-27-2005 12:26 PM
DISCUSSION: How To Configure the KDE 3.3 Menu manually (without KMenuEdit) MasterPatricko LinuxAnswers Discussion 0 11-16-2004 02:04 PM
How do i manually edit xf86config file in Debian Delarama Linux - Newbie 9 06-28-2004 03:29 AM
Uh-Oh... Manually Edit a Partition Table? davidbalt Linux - Software 11 03-02-2004 02:16 AM
how do you add/remove Gnome menu entries manually? randomx Linux - General 2 10-16-2003 11:06 PM


All times are GMT -5. The time now is 09:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration