Bug 1317 - Editing a launcher icon name in a folder view plasmoid breaks launcher.
Summary: Editing a launcher icon name in a folder view plasmoid breaks launcher.
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: John Balcaen
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2011-05-18 01:02 CEST by Barry Jackson
Modified: 2011-10-01 03:41 CEST (History)
1 user (show)

See Also:
Source RPM: lib64plasma3-4.6.3-1.mga1
CVE:
Status comment:


Attachments

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


Note You need to log in before you can comment on or make changes to this bug.