LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error saving with kmenuedit (https://www.linuxquestions.org/questions/linux-newbie-8/error-saving-with-kmenuedit-366875/)

joe2280 09-25-2005 09:59 AM

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) ?

foo_bar_foo 09-25-2005 04:46 PM

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

tkedwards 09-26-2005 01:04 AM

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.

joe2280 09-26-2005 06:37 AM

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 ?

tkedwards 09-26-2005 05:50 PM

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,


All times are GMT -5. The time now is 10:45 PM.