LinuxQuestions.org
Help answer threads with 0 replies.
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 09-25-2005, 10:59 AM   #1
joe2280
LQ Newbie
 
Registered: Sep 2005
Location: Montreal, Quebec, Canada
Distribution: SuSE 10.0
Posts: 21

Rep: Reputation: 15
Error saving with kmenuedit


Hi, here's the error I get when I'm saving my changes in kmenuedit:

X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20
Minor opcode: 0
Resource id: 0x3c03abe

I tried login as root and I tried as a user - both return the same error and the changes are never saved.

I tried changing my menus with menudrake but it doesn't work either: no error but the changes are never reflected in the actual menu.

Is there a way to manually edit the menus (without kmenuedit or menudrake) ?
 
Old 09-25-2005, 05:46 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
I don't think that error means anything or is the problem
you do save from the file menu yes ?
kde menu basics
kde tries to implement freedesktop.org menu standards

.desktop files describe the applications and are stored in `kde-config --prefix`/share/applications/kde
.directory files describing the sub-menus are stored in `kde-config --prefix`/share/desktop-directories
leave these system wide files alone
the basic user specific config thingy is in ~/.config/menus
this may be corrupted so first i would delete that and start over
user specific .directory and .desktop changes are in ~/.local/share under two directories
applications and desktop-directories
second thing to do to start over is to delete all the files in these two directories as well
files in these directories override the non user specific versions and also can mess things up.
sometimes mime setting you implement in controll center are stored here and mess up things
Applications not in the menu do not exist to KDE with regard to other applications or file associations
or even being able to get back in the menu.
there are some tricks to use by hand in the userspecific .menu and .directory files but there really shouldn't be any need.
one of these is
NoDisplay=true in a .directory file to keep apps in the menu but not shown

kde also continues to support older styles in think like file in `kde-config --prefix`/share/applnk
and ~/.kde/share/applnk so delete anything in the home version of those to start over

once you get all the cruft cleaned out it should go back to original menu and the menu editor should work again i think
 
Old 09-26-2005, 02:04 AM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Mandriva builds its menus from the files in /usr/lib/menu using the update-menu program. If you want to manually edit them then go to /usr/lib/menu and have a look at some of the files in there - its fairly simple. Run update-menu after you've done it.
 
Old 09-26-2005, 07:37 AM   #4
joe2280
LQ Newbie
 
Registered: Sep 2005
Location: Montreal, Quebec, Canada
Distribution: SuSE 10.0
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for the replys, I tried what foo_bar_foo suggested (deleting the files and have them automaticly rebuild) and that seemed to work... for a while. After I rebooted, the menus were ok but when I made my change (added a program) to the menu, I lost the different icons: All the folders and subfolders had the same icon - the blue folder (like the one you see in konqueror). So why do I lose my icons when I save with menudrake ?

Another question: it seem that a subfolder will only appear when there's a least one program within it, right ? But sometimes, there is a program within a subfolder but it won't show. Any ideas ?
 
Old 09-26-2005, 06:50 PM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
So why do I lose my icons when I save with menudrake ?
At a guess I'd say because menudrake builds the menus from what's in /usr/lib/menu so if you change it somewhere else, eg. by editing the .desktop files in the menu directories, it'll just overwrite them next time Mandrake builds the menus 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
restrict kmenuedit tnuic Linux - Security 1 08-12-2005 01:37 PM
KMenuEdit not saving changes CrEsPo Slackware 7 05-09-2005 08:08 PM
saving in quanta gives an error TheOneAndOnlySM Linux - Software 3 09-23-2004 05:14 AM
kmenuedit does not save davidsrsb Slackware 0 03-26-2004 09:39 AM
kmenuedit linuxBill Linux - General 9 07-11-2003 03:15 PM


All times are GMT -5. The time now is 06:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration