Bug 102349 - kmenuedit does not save changes
Summary: kmenuedit does not save changes
Status: RESOLVED WORKSFORME
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (show other bugs)
Version: 0.7
Platform: Unlisted Binaries Linux
: HI normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 08:06 UTC by Condor
Modified: 2010-03-20 15:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
.config menu file (2.51 KB, application/gzip)
2005-03-29 14:40 UTC, Condor
Details
.local files (3.02 KB, application/gzip)
2005-03-29 14:41 UTC, Condor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Condor 2005-03-24 08:06:57 UTC
Version:           Kmenuedit 3.4 (using KDE KDE 3.4.0)
Installed from:    Slackware Packages
Compiler:          gcc 3.3.5 
OS:                Linux

Hello,
i use Slackware 10.1 and have problem with kmenuedit and kde 3.4. After update my kde use own menu file and does not loaded my menu file applications-kmenuedit.menu. When i edin menu and save it ... when i click K start i see that no any changes has been made on my menu. Some times i recive follow error:
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  20
  Minor opcode:  0
  Resource id:  0x20004ae

I want to use my menufile. Where is saved menufile on kde 3.4 to replace with my menu. I dont want to delete my old applications-kmenuedit.menu. Any body can help ?
Comment 1 Condor 2005-03-26 10:28:34 UTC
Any bodu can help ?
Comment 2 Condor 2005-03-28 17:21:40 UTC
Why nobody answer me ?
Comment 3 Peter Volkov 2005-03-28 20:57:00 UTC
Same probem here. Also take a look at this topic:
http://forums.gentoo.org/viewtopic-t-313246-highlight-kde+menu.html
Comment 4 Waldo Bastian 2005-03-28 22:07:39 UTC
Condor: When you use kmenueditor, do you see your changes appear in ~/.config/menus/applications-kmenuedit.menu ? This file is still the one that is used by KDE for menu changes.

Maybe the application.menu file of your distribution forgets to merge it, does your application.menu file have a line like: 
	<MergeFile>applications-kmenuedit.menu</MergeFile>
?

Comment 5 Condor 2005-03-29 01:15:40 UTC
I have this line in my application.menu. When i make changes with kmenuedit, no any changes in file. The file is still my original menu file from kde 3.3.2
Comment 6 Peter Volkov 2005-03-29 08:00:41 UTC
Hello.

This problem is solved to me. It was gnome-menus package in gentoo that (I don't know how) did this problem.

Any way. kmenueditor edits my ~/.config/... and solution for gentoo is 

    export XDG_DATA_DIRS=/usr/kde/3.4/share:/usr/share 
    export XDG_CONFIG_DIRS=/usr/kde/3.4/etc/xdg:/etc/xdg

before startkde. Thank devsk that posted this solution here:
http://forums.gentoo.org/viewtopic-t-305240-postdays-0-postorder-asc-highlight-application+menu-start-225.html

Better solution is to set this variables in /etc/env.d/some_file :)

Thank you for your attention,
Peter.
Comment 7 Waldo Bastian 2005-03-29 10:41:33 UTC
Condor: Please note that the standard menu is defined by a file name "applications.menu" but that your changes should appear in "applications-kmenuedit.menu".

Can you add a tarball of ~/.config and ~/.local to this bugreport, can you describe one of your last attempted changes?
Comment 8 Condor 2005-03-29 14:40:25 UTC
Created attachment 10405 [details]
.config menu file
Comment 9 Condor 2005-03-29 14:41:02 UTC
Created attachment 10406 [details]
.local files
Comment 10 Condor 2005-03-29 14:44:45 UTC
After i update from kde 3.3.2 to kde 3.4 my kde menu is changed. I tryed to delete items in my menu and reconfigure to my menu file but after i click save in kmenuedit .. every thing looks like fine, but when click i K menu button i see that no any changes has been maked or changed in my menu. I can restore my menu when i delete in /opt/kde/etc/xdb/applicanio file and linked manual to my file in my home directory. This resolve the problem but i think that this is not real method to resolve problem.
Comment 11 Valerie 2005-04-01 18:54:47 UTC
I have the same problem with my compiled KDE3.4.0 on Debian SID. Seems like the workarounds given in this post are not working for me. 
Basically Kmenuedit does not edit the menu. NO matter what changes I make,the menu remains the same.
Comment 12 Valerie 2005-04-01 20:32:55 UTC
Uninstalling gnome-menus does the trick for me.
But I urge the KDE developers to find a away to make sure that the KDE Menu does not get affected because of gnome-menu packages. I want KDE menus in KDE and Gnome Menu in Gnome.
Comment 13 Donatas Glodenis 2005-04-16 13:20:49 UTC
I got the same problem, when kmenuedit does not edit menus, after installing gnome-desktop to Kubuntu 5.4. Later I --purge-removed the gnome-menus but it did not help. However, I created a new user, and the menu looks normal for that user (while my menu is all messed up with entries of unavailable gnome apps, that I cannot delete). 

Comment 14 Donatas Glodenis 2005-04-18 07:27:43 UTC
The Gentoo forums, referred to in the comments of this bug report, give this piece of advice:

==================
Guys!!! I solved this two problems! 
 1. To solve crash just see this bug: 
 http://bugs.gentoo.org/show_bug.cgi?id=87060 
 2. And to edit menu on the forum (see devsk's post) I found sollution. 
 Just create /etc/env.d/00xdgvars file: 
Code:
 XDG_DATA_DIRS=/usr/kde/3.4/share:/usr/share 
 XDG_CONFIG_DIRS=/usr/kde/3.4/etc/xdg:/etc/xdg 
   
 And then env-update and restart kde. Now I can edit my menu :)
==============

However, I don't know how to translate this into debian/ubuntu language. 

Could anyone help me please?
Comment 15 Jim Duffield 2005-04-26 21:04:54 UTC
One way to immediatly arrive at a "fix" is to include a "Save As..." so that ones amendments can be copied to appropriate directories.

In fact, thinkin' on this, why not include the "Save As..." in the next build that fixes this bug, fulltime.  Nice insurance?

Jim
Comment 16 Ryan Heuser 2005-06-09 17:37:01 UTC
June 9th, 2005 here.  I still have this exact problem.  Has anyone fixed this?
Comment 17 David Liontooth 2005-11-20 21:58:13 UTC
Variant of the problem that kmenuedit doesn't save -- for me it saves the first time in a session, but the second and subsequent times all moved items disappear. This is a central application and the failures can do quite a bit of damage. Maybe include a prominent warning in the application that it's not reliable?

KDE Version  0.7 (KDE 3.4.2, Debian Package 4:3.4.2-4 (testing/unstable))
Application  KDE Menu Editor
Operating System  Linux (x86_64) release 2.6.14
Compiler  Target: x86_64-linux-gnu
Comment 18 metroappelsap 2006-01-02 19:21:21 UTC
I had the same issues, but in my case there was not a bug in KMenuEdit, but kbuildsycoca was not invoked after saving the changes.

Try to edit you menu and run kbuildsycoca

In my case kbuildsycoca was not run because the temp file in /var/tmp/kde-cache-$USER/ was owned by root.

Hope this helps.
Comment 19 Ivica Culjak 2006-08-31 02:59:37 UTC
I have pretty much the same problem on Mandriva 2006 distribution. When I try to use KDE menu editor by first clicking on "K" button and when the menu entries come up by right-clicking on one of the entries. I can do any changes (adding, deleting and rearranging entries) and when I finish the menu remains the same as it was before, no matter how many times I do this. I have also tried using Menudrake options from K->System->configuration-Other->Menudrake. This changes menus in all other environments {Gnome etc.) but not in KDE, even though I specified in Options->all environments and than again specifically for kde, to no avail. It might be possible that this is a bug somewhere else in KDE and not specifically in KDE menu Editor.
Comment 20 rafael 2006-12-03 22:00:35 UTC
Same behavior for me...
I'm using slackware 10.2 and kde 3.5.5  

Comment 21 Anne-Marie Mahfouf 2010-03-20 15:40:38 UTC
Closing as we are now in KDE 4 and this works for me. Open a new bug report with a specific problem for KMenuEdit if you have one.