Bug 82610 - KMenueditor don't save the changes
Summary: KMenueditor don't save the changes
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-01 01:11 UTC by Raul Moratalla
Modified: 2004-06-01 13:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Corret .config folder (627 bytes, application/octet-stream)
2004-06-01 12:39 UTC, Raul Moratalla
Details
Bad .config folder (898 bytes, application/x-tgz)
2004-06-01 12:41 UTC, Raul Moratalla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raul Moratalla 2004-06-01 01:11:02 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    RedHat RPMs
OS:                Linux

I have tested this bug on mi fedora core 2 system and I know that others users have the same problem.The way to reproduce the problem is:
Start Gnome and change the icons of your theme. Exit Gnome.
Start kde and if you try to edit your customized (add or delete some item) menu you'll see that if you save the changes, there is no effect. There is effect if you change the icon of an application, but no more.
The way to solve this is to delete the folders .config and .local (I think that with .config will be proud) and now you can change if you restart kde.
There are more users with this problems as you can see in Fedora core mailing-list.
Comment 1 Waldo Bastian 2004-06-01 11:11:05 UTC
Can you make a tarbal of your .config directory and attach it to this bugreport once you notice that kmenuedit won't save changes?
Comment 2 Raul Moratalla 2004-06-01 12:39:18 UTC
Created attachment 6210 [details]
Corret .config folder

This is the correct .config folder before the bug.
Comment 3 Raul Moratalla 2004-06-01 12:41:15 UTC
Created attachment 6211 [details]
Bad .config folder

This is my menu that I can't edit, well, I can save changes of description or
icons, but I can't add or delete any item. I save the changes but there are no
effect.
Comment 4 Waldo Bastian 2004-06-01 13:21:33 UTC
CVS commit by waba: 

Treat file locations under $XDG_CONFIG_DIRS/menus/
as relative to $XDG_CONFIG_DIRS/menus/ (BR82610)
CCMAIL: 82610-done@bugs.kde.org


  M +6 -1      vfolder_menu.cpp   1.24


--- kdelibs/kded/vfolder_menu.cpp  #1.23:1.24
@@ -680,5 +680,10 @@ VFolderMenu::pushDocInfo(const QString &
    m_docInfoStack.push(m_docInfo);
    if (!baseDir.isEmpty())
+   {
+      if (baseDir.startsWith("/"))
+         m_docInfo.baseDir = KGlobal::dirs()->relativeLocation("xdgconf-menu", baseDir);
+      else
       m_docInfo.baseDir = baseDir;
+   }
 
    QString baseName = fileName;