Bug 749787

Summary: Saving a new entry in kmenuedit doesn't work
Product: [Fedora] Fedora Reporter: Julien HENRY <henryju>
Component: kdebase-workspaceAssignee: Than Ngo <than>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: fedora, iarnell, jreznik, kevin, ltinkl, marc.muehlfeld, mike.cloaked, pahan, rdieter, rnovacek, ry, smparrish, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: blinken-4.7.3-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-13 05:26:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Julien HENRY 2011-10-28 11:52:57 UTC
Description of problem:
I want to add a custom entry to my KDE menu. It seems adding an entry and saving with kmenuedit doesn't work.

Version-Release number of selected component (if applicable):
kdebase-workspace-4.7.2-8.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1.Right click on Kickoff menu lancher
2.Modify applications... (start kmenuedit)
3.Add a new entry (for me it was Eclipse under devlopment)
4.Save
5.Close kmenuedit
  
Actual results:
The entry is not displayed in the menu. Opening kmenuedit again show that the entry was actually not saved.

Comment 1 Kevin Kofler 2011-11-01 17:07:28 UTC
*** Bug 750590 has been marked as a duplicate of this bug. ***

Comment 2 Iain Arnell 2011-11-02 13:07:44 UTC
Same problem here. The .desktop files are created, but the Path key is screwed up:

$ desktop-file-validate ~/.local/share/applications/Test.desktop 
/home/ia03510/.local/share/applications/Test.desktop: error: file contains key "Path[$e]" in group "Desktop Entry", but key names must contain only the characters A-Za-z0-9- (they may have a "[LOCALE]" postfix)

Comment 3 Kevin Kofler 2011-11-02 14:44:13 UTC
No, that isn't the problem. [$e] is a KConfig feature (kdelibs reads .desktop files using KConfig) which means that the value of "Path" is the result of running a command. This is expected to work. (Now, arguably, the use of a non-portable KConfig feature in ~/.local/share/applications is another bug, but it shouldn't be causing THIS bug.)

Comment 4 Iain Arnell 2011-11-02 15:00:24 UTC
Ah, okay, my bad. 

Then really checking to see what's broken, it seems to be the OnlyShowIn key. If "Only show in KDE" is not selected in kmenuedit, the desktop file contains

OnlyShowIn=

and not surprisingly, the menu item isn't shown. Simply removing that key works and menu item appears as expected.

Comment 5 Radek Novacek 2011-11-04 09:59:13 UTC
*** Bug 751298 has been marked as a duplicate of this bug. ***

Comment 6 Mike C 2011-11-10 22:03:48 UTC
Yes I have the same issue in f16 64 bit fully up to date.

Editing as per https://bugs.kde.org/show_bug.cgi?id=283658 and as above does fix it - also if multiple attempts have been made to see a new subsection then the file in .config/menus/applications-kmenuedit.menu is also needed to remove the incorrect entries.

This needs fixing upstream as soon as possible?

Comment 7 Mike C 2011-11-10 22:26:52 UTC
I should have said that in the bz referred above that this is supposed to be fixed in 4.7.3 - is it likely that 4.7.3 will be pushed to f16 soon?

If not then can there be a backport?

Comment 8 Kevin Kofler 2011-11-10 22:45:08 UTC
4.7.3 is in updates-testing:
https://admin.fedoraproject.org/updates/FEDORA-2011-15707

Comment 9 Mike C 2011-11-10 22:55:15 UTC
Thanks Kevin - I perhaps should have checked - busy times! I look forward to the new version - and will test if I get some time in the next couple of days.

Comment 10 Mike C 2011-11-11 10:42:51 UTC
I have tested the new version 4.7.3.1 in updates-testing which confirms this bug is fixed - so gave positive karma and hopefully this will go to stable soon.

Comment 11 Fedora Update System 2011-11-12 12:38:27 UTC
blinken-4.7.3-1.fc16, cantor-4.7.3-1.fc16, grantlee-0.2.0-1.fc16, gwenview-4.7.3-1.fc16, kalgebra-4.7.3-1.fc16, kalzium-4.7.3-1.fc16, kamera-4.7.3-1.fc16, kanagram-4.7.3-1.fc16, kate-4.7.3-1.fc16, kbruch-4.7.3-1.fc16, kcolorchooser-4.7.3-1.fc16, kdeaccessibility-4.7.3-1.fc16, kdeadmin-4.7.3-1.fc16, kdeartwork-4.7.3-1.fc16, kdebase-4.7.3-1.fc16, kdebase-runtime-4.7.3-10.fc16, kdebase-workspace-4.7.3-6.fc16, kdeedu-4.7.3-1.fc16, kdegames-4.7.3-1.fc16, kdegraphics-4.7.3-1.fc16, kdegraphics-strigi-analyzer-4.7.3-1.fc16, kdegraphics-thumbnailers-4.7.3-1.fc16, kde-l10n-4.7.3-1.fc16, kdelibs-4.7.3-2.fc16, kdemultimedia-4.7.3-1.fc16, kdenetwork-4.7.3-1.fc16, kdepim-4.7.3-1.fc16, kdepimlibs-4.7.3-1.fc16, kdepim-runtime-4.7.3-1.fc16, kdeplasma-addons-4.7.3-1.fc16, kdesdk-4.7.3-1.fc16, kdetoys-4.7.3-1.fc16, kdeutils-4.7.3-1.fc16, kde-wallpapers-4.7.3-5.fc16, kgamma-4.7.3-1.fc16, kgeography-4.7.3-1.fc16, khangman-4.7.3-1.fc16, kig-4.7.3-1.fc16, kiten-4.7.3-1.fc16, klettres-4.7.3-1.fc16, kmplot-4.7.3-1.fc16, kolourpaint-4.7.3-1.fc16, konsole-4.7.3-1.fc16, kross-interpreters-4.7.3-1.fc16, kruler-4.7.3-1.fc16, ksaneplugin-4.7.3-1.fc16, ksnapshot-4.7.3-1.fc16, kstars-4.7.3-1.fc16, ktouch-4.7.3-1.fc16, kturtle-4.7.3-1.fc16, kwordquiz-4.7.3-1.fc16, libkactivities-6.1-2.fc16, libkdcraw-4.7.3-1.fc16, libkdeedu-4.7.3-1.fc16, libkexiv2-4.7.3-1.fc16, libkipi-4.7.3-1.fc16, libksane-4.7.3-1.fc16, marble-4.7.3-1.fc16, okular-4.7.3-1.fc16, oxygen-icon-theme-4.7.3-1.fc16, parley-4.7.3-1.fc16, PyKDE4-4.7.3-1.fc16, rocs-4.7.3-1.fc16, smokegen-4.7.3-1.fc16, smokekde-4.7.3-1.fc16, smokeqt-4.7.3-1.fc16, step-4.7.3-1.fc16, svgpart-4.7.3-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2011-15707

Comment 12 Kevin Kofler 2011-11-12 12:41:47 UTC
FEDORA-2011-15707 is already in updates-testing, now headed for stable.

Comment 13 Fedora Update System 2011-11-13 05:26:59 UTC
blinken-4.7.3-1.fc16, cantor-4.7.3-1.fc16, grantlee-0.2.0-1.fc16, gwenview-4.7.3-1.fc16, kalgebra-4.7.3-1.fc16, kalzium-4.7.3-1.fc16, kamera-4.7.3-1.fc16, kanagram-4.7.3-1.fc16, kate-4.7.3-1.fc16, kbruch-4.7.3-1.fc16, kcolorchooser-4.7.3-1.fc16, kdeaccessibility-4.7.3-1.fc16, kdeadmin-4.7.3-1.fc16, kdeartwork-4.7.3-1.fc16, kdebase-4.7.3-1.fc16, kdebase-runtime-4.7.3-10.fc16, kdebase-workspace-4.7.3-6.fc16, kdeedu-4.7.3-1.fc16, kdegames-4.7.3-1.fc16, kdegraphics-4.7.3-1.fc16, kdegraphics-strigi-analyzer-4.7.3-1.fc16, kdegraphics-thumbnailers-4.7.3-1.fc16, kde-l10n-4.7.3-1.fc16, kdelibs-4.7.3-2.fc16, kdemultimedia-4.7.3-1.fc16, kdenetwork-4.7.3-1.fc16, kdepim-4.7.3-1.fc16, kdepimlibs-4.7.3-1.fc16, kdepim-runtime-4.7.3-1.fc16, kdeplasma-addons-4.7.3-1.fc16, kdesdk-4.7.3-1.fc16, kdetoys-4.7.3-1.fc16, kdeutils-4.7.3-1.fc16, kde-wallpapers-4.7.3-5.fc16, kgamma-4.7.3-1.fc16, kgeography-4.7.3-1.fc16, khangman-4.7.3-1.fc16, kig-4.7.3-1.fc16, kiten-4.7.3-1.fc16, klettres-4.7.3-1.fc16, kmplot-4.7.3-1.fc16, kolourpaint-4.7.3-1.fc16, konsole-4.7.3-1.fc16, kross-interpreters-4.7.3-1.fc16, kruler-4.7.3-1.fc16, ksaneplugin-4.7.3-1.fc16, ksnapshot-4.7.3-1.fc16, kstars-4.7.3-1.fc16, ktouch-4.7.3-1.fc16, kturtle-4.7.3-1.fc16, kwordquiz-4.7.3-1.fc16, libkactivities-6.1-2.fc16, libkdcraw-4.7.3-1.fc16, libkdeedu-4.7.3-1.fc16, libkexiv2-4.7.3-1.fc16, libkipi-4.7.3-1.fc16, libksane-4.7.3-1.fc16, marble-4.7.3-1.fc16, okular-4.7.3-1.fc16, oxygen-icon-theme-4.7.3-1.fc16, parley-4.7.3-1.fc16, PyKDE4-4.7.3-1.fc16, rocs-4.7.3-1.fc16, smokegen-4.7.3-1.fc16, smokekde-4.7.3-1.fc16, smokeqt-4.7.3-1.fc16, step-4.7.3-1.fc16, svgpart-4.7.3-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.