Deleting the .menu files won't actually result in loss of any shortcut. It will only make it default to the information provided from the .desktop files, instead of the overrides made in .menu files. Nevertheless, always backup :) What you will lose are sections, subsections and shortcut order, modified trough the menu system. Any information inside the .desktop files will be kept. KDE should put everything into it's default position (provided there is any inside the .desktop files), well, at least KDE4 does. I've also experienced this kind of messy behavior, but with KDE4. It's so much trouble that I decided to just delete every menu file and make the changes inside .desktop files. This may also work globally with other DEs, if they respect the XDG rules. A shortcoming may be that You shouldn't edit system .desktop files (You can, but pacman may eat it), but instead, duplicate them to yours personal ~/.config/share/applications/ dir. Add or Look for this inside .desktop files: Type=Application Categories=Game;ArcadeGame; The menu system will try to match these Categories and put inside directories (sections) defined in /usr/share/desktop-directories/ or ~/.local/share/desktop-directories/ Also, your "old" directories might still be defined in there. They won't be visible in menus until some .desktop file reference them. Trying to fix this inside the menu editor might get things even worse. (but you could try!) 2010/7/21 David C. Rankin <drankinatty@xxxxxxxxxxxxxxxxxx> > On 07/19/2010 05:06 PM, Adriano Moura wrote: > >> Look arround in ~/.gnome/apps ~/.gnome/mime-info/ and ~/kde/share/ >> >> If you find something suspecious, try hiding again. >> >> I really don't know how those DEs handle those files, but you can try. >> >> 2010/7/19 David C. Rankin<drankinatty@xxxxxxxxxxxxxxxxxx> >> >> >>> 1 down 1 to go. Any other ideas on the crazy menu errors? >>> >>> >>> >> > Well now I think I've found the motherload of screwed up menu files. Going > through ~/.config/menus, I have found hundreds of menu 'undo files'. The > directory is filled with: > > 04:45 alchemy:~/.config> l menus/ > total 2028 > drwxr-xr-x 2 david dcr 12288 Jul 16 00:02 . > drwxr-xr-x 39 david dcr 4096 Jul 19 13:11 .. > -rw-r--r-- 1 david dcr 6952 Jun 27 09:57 applications-kmenuedit.menu > -rw-r--r-- 1 david dcr 19055 Jul 19 00:58 applications.menu > -rw-r--r-- 1 david dcr 1363 Nov 29 2009 applications.menu.undo-10 > -rw-r--r-- 1 root root 12350 Jul 15 20:47 applications.menu.undo-100 > -rw-r--r-- 1 root root 12418 Jul 15 20:48 applications.menu.undo-101 > -rw-r--r-- 1 root root 12488 Jul 15 20:48 applications.menu.undo-102 > -rw-r--r-- 1 root root 12555 Jul 15 20:49 applications.menu.undo-103 > -rw-r--r-- 1 root root 12660 Jul 15 20:50 applications.menu.undo-104 > -rw-r--r-- 1 root root 12765 Jul 15 20:50 applications.menu.undo-105 > -rw-r--r-- 1 root root 12831 Jul 15 20:50 applications.menu.undo-106 > -rw-r--r-- 1 root root 12894 Jul 15 20:50 applications.menu.undo-107 > -rw-r--r-- 1 root root 12970 Jul 15 20:50 applications.menu.undo-108 > -rw-r--r-- 1 root root 12970 Jul 15 20:55 applications.menu.undo-109 > -rw-r--r-- 1 david dcr 1443 Nov 29 2009 applications.menu.undo-11 > -rw-r--r-- 1 root root 13075 Jul 15 20:56 applications.menu.undo-110 > -rw-r--r-- 1 root root 13142 Jul 15 20:56 applications.menu.undo-111 > -rw-r--r-- 1 root root 13206 Jul 15 20:56 applications.menu.undo-112 > -rw-r--r-- 1 root root 13274 Jul 15 20:56 applications.menu.undo-113 > -rw-r--r-- 1 root root 13354 Jul 15 20:56 applications.menu.undo-114 > -rw-r--r-- 1 root root 13418 Jul 15 20:57 applications.menu.undo-115 > -rw-r--r-- 1 root root 13487 Jul 15 20:57 applications.menu.undo-116 > -rw-r--r-- 1 root root 13558 Jul 15 20:57 applications.menu.undo-117 > -rw-r--r-- 1 root root 13627 Jul 15 20:58 applications.menu.undo-118 > -rw-r--r-- 1 root root 13732 Jul 15 20:58 applications.menu.undo-119 > -rw-r--r-- 1 david dcr 1509 Nov 29 2009 applications.menu.undo-12 > -rw-r--r-- 1 root root 13802 Jul 15 20:58 applications.menu.undo-120 > -rw-r--r-- 1 root root 13875 Jul 15 20:59 applications.menu.undo-121 > <snip> > > They all look to be from the time I edited the gnome menu and from > when the menus in kde3 broke. The file content looks like this: > > 04:49 alchemy:~/.config/menus> cat applications.menu.undo-100 > <!DOCTYPE Menu > PUBLIC '-//freedesktop//DTD Menu 1.0//EN' > 'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'> > <Menu> > <Move> > <Old>Accessories/alacarte-made</Old> > <New>alacarte-made-1/alacarte-made</New> > </Move> > <Move> > <Old>Games</Old> > <New>Accessories/Games</New> > </Move> > <Move> > <Old>Education</Old> > <New>Accessories/Education</New> > </Move> > <Move> > <Old>Archlinux</Old> > <New>Accessories/Archlinux</New> > </Move> > <Name>Applications</Name> > <MergeFile > type="parent">/etc/xdg/menus/applications.menu</MergeFile> > <Menu> > [snip] > > So it was gnome that trashed my kde menu. But now -- how do I fix > this mess? Let me know if I can provide any more information. If you would > like the complete contents of one of these undo files, you can grab the rest > of that one here: > > (12k) > http://www.3111skyline.com/dl/Archlinux/bugs/applications.menu.undo-100 > > I hope there is a tool that can reverse the changes. That would seem > to be the purpose of the 'undo', but I don't want to lose my new menu items > either. How should we handle this mess? > > > -- > David C. Rankin, J.D.,P.E. > Rankin Law Firm, PLLC > 510 Ochiltree Street > Nacogdoches, Texas 75961 > Telephone: (936) 715-9333 > Facsimile: (936) 715-9339 > www.rankinlawfirm.com >