Bug 76969 - Can't change a certain K menu item
Summary: Can't change a certain K menu item
Status: RESOLVED WORKSFORME
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (show other bugs)
Version: 0.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-07 23:25 UTC by Paul Hoepfner-Homme
Modified: 2012-07-30 10:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hoepfner-Homme 2004-03-07 23:25:32 UTC
Version:           0.5 (using KDE 3.2.0, Gentoo)
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)
OS:          Linux (i686) release 2.4.22-gentoo-r5

I run Gentoo Linux. I had Mozilla Firebird installed via the Gentoo packages, which automatically installed a "Mozilla Firebird" entry into my Internet K-menu category. Now I just upgraded the package, and its name has changed to "Firefox". However, my K menu entry hasn't been updated - it still says "Mozilla Firebird" (this isn't the bug I'm interested in - I assume this is a Gentoo package bug).

So I went to KDE Menu Editor and tried to update the entry so it referred to Mozilla Firefox instead. I edited the entry in KDE Menu Editor, and the entry appeared to be updated in the list on the left. I then hit Save and it displayed an "updating system configuration message". But when I opened the K-Menu to check, the entry still said "Mozilla Firebird", despite the fact that in KDE Menu Editor it said Mozilla Firefox (and after I hit Save).

I closed KDE Menu Editor and reopened it, and then it displayed "Mozilla Firebird" in the list just as if I had never edited it. So I tried making the same change again, saving it, closing it, and reopening it, and it *still* showed "Mozilla Firebird".

So it seems there's nothing I can do to modify this entry. I'll just create a new one for now. But it's frustrating.
Comment 1 adam kramer 2004-03-08 00:48:03 UTC
The same thing occured to me when I upgraded to firefox .8 from firebird 0.7. 
Since firefox was installed into a different directory structure (/usr/local/firefox) than Firebird (/usr/local/MozillaFirebird), I deleted the latter directory. I then tried updating the menu entry for Firebird changing its 'name' and 'command'. I saved the entry then exited the editor and went to the start menu, but the entry was still the same name without the command. 

My guess is that the kstartmenu doesn't deal with the case of modifying an entry for a command path that has been deleted. Perhaps this should be looked into.
Comment 2 Waldo Bastian 2004-03-08 11:24:31 UTC
zcu2k001: Can you locate all .desktop files that Firefox and/or Firebird have installed? In particular check ~/.local/share/applications.
Can you list all .desktop files that you find including their permissions?
Comment 3 Paul Hoepfner-Homme 2004-03-10 04:47:50 UTC
Here is what was installed by Firebird (AFAIK):
-rw-r--r--    1 root     root         2427 Feb  5 20:54 /usr/kde/3.2/share/apps/kappfinder/apps/Internet/mozilla-firebird.desktop

Now, it appears that the Gentoo package for Firefox didn't even install a desktop file on my system (there is none that I could find in /usr/kde/...), however I did find a "mozillafirefox.desktop" file in the Portage data directory (Portage is Gentoo's installation system):
-rw-r--r--    1 root     root          129 Feb 12 03:24 /usr/portage/net-www/mozilla-firefox-bin/files/icon/mozillafirefox.desktop
However, since it apparently was never installed onto my system for some reason, it probably won't be of much use to you.

Unfortunately, I deleted that unmodifiable Mozilla Firebird entry from my K menu because I didn't like it there, and replaced it with a new item for Firefox. But anyhow, here are the relevant Firefox/Firebird entries in .local/share/appliactions that I could find:
-rw-------    1 paul     users         189 Mar  7 17:25 Mozilla Firefox.desktop
-rw-------    1 paul     users         296 Mar  7 17:13 kde-mozilla.desktop
(I'm the user "paul" by the way.)

"Mozilla Firefox.desktop" is the entry I created, AFAICT. No idea where kde-mozilla.desktop came from (maybe the Menu Updating Tool?). But it may be the one that I was trying to modify but couldn't (though I'm not sure), because this is what kde-mozilla.desktop contains:
[Desktop Entry]
Comment=
Encoding=UTF-8
Exec=firefox %u
GenericName=Web Browser
Icon=mozilla
MimeType=text/html;Application
Name=Mozilla Firefox
Path=
ServiceTypes=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
X-KDE-StartupNotify=true
X-KDE-SubstituteUID=false
X-KDE-Username=

It looks like the entry I was trying (unsuccessfully) to modify in my K menu. But who knows.
Comment 4 Paul Eggleton 2004-03-27 11:50:41 UTC
I've had the same issue on Gentoo, this time with the item for GIMP (command changed from gimp to gimp-2.0). It just won't save changes.

Now, I just realised if the menu item is there as a result of a system-installed .desktop file, then that desktop file will be read-only to me as a lowly user. Could that be the cause of this problem?
Comment 5 Waldo Bastian 2004-05-03 15:49:41 UTC
Paul Eggleton: Where is such read-only desktop file installed? Under /usr/ or under $HOME ?

Paul Hoepfner-Homme: Can you try if it works better already with KDE 3.2.2 ?
Comment 6 Heinrich Wendel 2005-05-14 23:12:40 UTC
what about kde 3.4?
Comment 7 CSH 2006-03-25 17:20:51 UTC
I see these same issues in KDE 3.5, both with my old user account, and with a fresh one.
Comment 8 Jekyll Wu 2012-07-30 10:41:11 UTC
Old bug report and no such problem when using KDE SC 4.9