PDA

View Full Version : FC2 KDE Menu editing?


jtang613
30th May 2004, 06:38 PM
Does anyone out there know how to enable kmenuedit in FC2?

Why was it disabled?

Thanks,
jt

ilja
30th May 2004, 06:40 PM
Sure it is installed ?

jtang613
30th May 2004, 06:55 PM

lol... of course its installed. :rolleyes: Does yours work? Can you create a new menu item in KDE that actually appears in your menu?

I'm asking if anyone out there knows how to enable its functionality.

I'm able to use kmenuedit to create a new menu item, and save it. But none of this has any affect whatsoever on my menus.

The new saved .desktop items appear in my ~/.local/share/applications directory but it would appear that KDE is unaware of this.

I'm hoping someone has figured this out. In gnome it was as easy as playing the the /etc/gone-vfs-2.0/modules/ files. But I haven't found anything similar for KDE.

jt

jrittvo
30th May 2004, 08:08 PM
I have found that if you edit a menu item that is already in the menu, then the editing will "stick". Using kmenuedit, you can change the name, comment, program that it runs, icon, etc., of an existing item to whatever you want and your changes will be kept. You can't move it one from one group to another though, so you need to do your edits within groups.

Sometime in the next few days, I will make an edit like this, save it, and then search for files with that modification time to try to see where this info is stored. That would be the file where editing in a completely new entry with a text editor would probably work. The ones that I've found from snooping around that seem to hold added entries made by kmenuedit don't seem to get merged into the main menu files, as you point out.

jtang613
31st May 2004, 01:05 PM
The normal .desktop files are stored in /usr/share/applications and /usr/share/applnk. However kmenuedit stores the saved files in ~/.local/share/applications/

As well, it seems that kmenuedit doesn't append the "categories" field to the .desktop XML files, which is probably why they are not merged.

I've also tried copying one of the /usr/share/applications .desktop files and editing it, but still no luck.

I wonder why the Fedora people would do this?

jt

Crashtest
1st June 2004, 10:52 AM
OK, here's a strange thing: I had it working for a while. I added Pan to the Internet section, and it worked just fine. NOW THE PAN ENTRY IS MISSING ???

I'm not sure what happened, but I did login to both Gnome and XFCE sometime after adding Pan to the menu. Not sure if this has anything to do with it.

niner
7th June 2004, 10:14 AM
I've got the same exact issue as Crashtest. I made a "quicklaunch" menu with all of my commonly used apps because the upgrade from FC1 to FC2 removed it.

Had it working well then I logged in using Gnome - when I got back to KDE my quicklaunch menu was gone and all the apps I'd copied from other groups were redistributed to where they came from. This left duplicates of all the apps I'd put in the quicklaunch menu.

I go to make the menu again, but nothing sticks - I tried to do this several times, but it just won't let me add a new submenu.

I think it may have something to do with the config file or my profile not getting saved. I've also noticed that every time I reboot (not just logout/login) that my master and pcm sound volumes are zeroed.

All very confusing and annoying. please help.

genci
7th June 2004, 10:53 AM
I had the same problem with FC2 and the KDE menu ignoring any changes/additions I was making with it. I got around this by first renaming ~/.config and then letting a new config file get generated. This worked fine and I was able to edit the Kmenu again, so I deleted the old version.

I was initially assuming this was something to do with me retaining my old /home partition when I did a fresh install of FC2 (had FC2 test 1 previously) and the previous .config file was corrupt. But then, the root account also had this problem and /root was freshly installed. Strange. Go figure that one :rolleyes:

niner
7th June 2004, 07:14 PM
Thanks this helped. No more problem.

Now if I could only figure out why my sound volume gets zeroed when I reboot (not when I logout/login though).....

jtang613
8th June 2004, 07:29 AM
But nevertheless... KMenuEdit is still functionally disabled in Fedora... I don't appreciate it when useful features are disabled on purpose without a good explanation or alternative.

I've resorted to creating new KDE menu entries by hand (console + vi). When will they learn :(

jt

rsorb61
8th June 2004, 11:19 AM
Delete the .config folder in your home directory and you will be able to edit the kde menu again. Be advised that if you use Gnome it does something to the config files that confuses KDE.

jrittvo
8th June 2004, 01:02 PM
Yes. I just tried the deleting .config trick, and it seems to work as long as I don't ever log in to a Gnome session. Like you say, going into Gnome seems to erase the changes and puts back a new set of .config files without them. I guess I'll need to develop the habit of making a .config backup copy each time I do menu edits, so I'll have that there to restore from if I ever need to do a Gnome session later.

jtang613
9th June 2004, 01:54 AM
Yup, seems to work. Thanks. I've been looking for this for a while. Now if only gnome and KDE could play nice...

Bart
14th July 2004, 01:34 PM
FINALLY somebody told me what the problem is. So Gnome messes with your .config folder, so KDE reverts to its default menus. I now can create an elegant workaround (not a real solution):

* I rename .config to .config.other

* I login using kde (a .config is automaticcaly created)

** I create a logoff-script that does:

IF session was kde THEN
cp .config .config.kde
ELSE
cp .config .config.other
END IF

** I create a logon-script that does:

IF session is kde THEN
cp config.kde .config
ELSE
cp .config.other .config
END IF

** I log off, thereby creating a .config.kde

(The reason I copy instead of mv, is that this way, the computer can handle a power failure when loggend on.)

hperrin
18th November 2004, 02:33 PM
Hey, i've got the same problem - my menu won't update - but it's only for certain users. For root, the menu can be changed.

I've tried getting rid of the .config files and that didn't work. I'm using FC3 with KDE and gnome installed.

anyone got any ideas?
Cheers,
Howy