Bug 1317

Summary: Editing a launcher icon name in a folder view plasmoid breaks launcher.
Product: Mageia Reporter: Barry Jackson <zen25000>
Component: RPM PackagesAssignee: John Balcaen <balcaen.john>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: balcaen.john
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: lib64plasma3-4.6.3-1.mga1 CVE:
Status comment:

Description Barry Jackson 2011-05-18 01:02:07 CEST
Description of problem:
If a new launcher for an application is added to a folder view plasmoid by dragging it from the menu and copying, and it is renamed to remove the .desktop extension, then on first use the icon changes to a generic text document icon and opens as a text file in kwrite.
Initially the file contains:-

# KDE Config File
[Desktop Entry]
Name=Kdenlive
----snip-----

...but after editing the name this is changed to :-

#!/usr/bin/env xdg-open
# KDE Config File
[Desktop Entry]
Name=Kdenlive
----snip-----

Clicking this icon simply causes it to open in a text editor.

If the shebang is removed it then works correctly and the icon is correct with (in this example case) the icon label (filename) Kdenlive, just as it would be if it had been placed on the desktop.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Drag application to a folder view plasmoid and copy.
2.Right click -> rename and remove the .desktop ext. 
3.Try to use the icon
4.Right click -> open with-> kwrite and remove the shebang
5.Note Icon reverts to correct image and program can be launched
Comment 1 Ahmad Samir 2011-05-18 01:26:09 CEST
Well, .desktop files should have a .desktop extension... the shebang is added when you "trust" the launcher, i.e. first time you click it KDE asks you.

FWIW, I tested with kdenlive, seems to work here without the .desktop extension.
Comment 2 Manuel Hiebel 2011-10-01 01:22:27 CEST
What about this bug, still present ? should be reported upstream ?

Keywords: (none) => NEEDINFO
Assignee: bugsquad => balcaen.john

Comment 3 John Balcaen 2011-10-01 03:41:41 CEST
invalid, a desktop file should have a .desktop extension.
Otherwise he need to report upstream

Status: NEW => RESOLVED
CC: (none) => balcaen.john
Resolution: (none) => INVALID