This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDE Menu Editor problems

Tags: None
(comma "," separated)
strycat
Registered Member
Posts
18
Karma
0

KDE Menu Editor problems

Tue Aug 17, 2010 5:50 pm
So I've got KDE 4.5 installed on kubuntu 10.04.

I right clicked on the menu and chose menu editor.

I added a submenu. I dragged it down to between Utilities and Lost & Found. I added an item to the submenu. I then saved and closed the menu editor.

I clicked on the menu and chose applications. My new submenu and the one item in it appeared was there, but not in the location I wanted. It was at the top instead of near the bottom.

So I go back into the menu editor and try again. I see my submenu up at the top. I drag it down to where I want it and see there is already something there with the submenu name and a "-1" appended to it.

I delete this submenu-1 and save.

Same results. Back into the menu editor and now there's a submenu-2.

Wash, rinse, repeat until I have a submenu-10.

So I found a forum post on some other site that tole me the menu file is stored in ~/.config/menus/applications-kmenuedit.menu

I looked in this file and it was a horrible mess. There was a bunch of menu entiries for my submenu and all of them were moved or old or deleted. I removed all the entires and saved the file. Everything blinked.

Opening the menu up again and my submenu is still at the top although all references to it in that file are gone.

I even went as far as rebooting and it is still there.

Is there some other file that contains the full menu that I should edit? Is there some way to make the KDE Menu Editor put my submenu where I want it and stop creating these other submenus? Basically what have I done wrong and what can I do to fix it?

Edit: After again deleting all of my own menu entires, I just tried Restore to System Menu under Edit in the Menu Editor. It put back the submenu I've been trying to create and put it in the right place. However it also added back submenu-1 through submenu-10 as well. So i'm wondering now if somehow I've got these submenus in the default KDE menu files somehow. I found something under /etc/xdg/menus which has what appear to be the default KDE menus. However my submenu stuff is not in any of those files (which I think is good), but this remains a mystery as to where it is picking up my submenu.

Also if it is of any help:

kmenuedit -v
Qt: 4.7.0
KDE Development Platform: 4.5.00 (KDE 4.5.0)
KDE Menu Editor: 0.8
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE Menu Editor problems

Wed Aug 18, 2010 5:38 am
Please run the following command, then try to make changes in the Menu Editor.

Code: Select all
kbuildsycoca4 --noincremental


Also, search for a file containing "kmenuedit" in it's name under ~/.local and remove that prior to running that command if you wish to revert your changes.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
strycat
Registered Member
Posts
18
Karma
0

Re: KDE Menu Editor problems

Wed Aug 18, 2010 5:56 pm
Thanks for the info. I couldn't find anything in .local with kmenuedit (in .local I did find . -name kmenuedit)

So I ran kbuildsycoca4 --noincremental

I got a lot of errors about various files "not compliant with XDG standard (missing trailing semicolon).

I then fired up the menu editor by right clicking on the menu and choosing "Menu Editor"

I created my new submenu and just one of the items in it. I then dragged it down to the bottom where I wanted it.

Saved and closed. Clicking on the menu I discover that my new submenu has accidentally found its way into the submenu that should be right next to it. So fire it up again and try to move it.

First thing I notice is where I want the new submenu is something called "Submenu-3" (but it has no items or the custom icon). I find my submenu somehow got into the Utilities submenu so I drag it out and put it where it should be. Save and close.

It still appears in the Utilities submenu. Firing up the editor I've not got something called "Submenu-4" in the place my submenu should be and the actual submenu is in the utilities submenu again.

Wash, rinse, repeat.

What am I doing wrong now and how can I fix this? I haven't looked but I assume that .menu file is full of a bunch of submenus I don't need or want again.
strycat
Registered Member
Posts
18
Karma
0

Re: KDE Menu Editor problems

Wed Aug 18, 2010 6:54 pm
Ok here's what I did.

I moved the items in the real submenu to one of the submenu-numbers. I saved. It looked right.

So I then deleted the "real" one which was now empty. I set the custom icon on the submenu-7 which now had the items in it. I then renamed it to submenu and saved.

It appears all good now.

So I wonder if the menu editor knows how to move submenus with items in them or if it even knows how to move submenues at all.

Is this a bug I should submit?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KDE Menu Editor problems

Fri Aug 20, 2010 5:10 am
Yes, please submit a bug report.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]