Bug 151501

Summary: File Properties dialog: "ksystraycmd" disppears from .desktop file's command field (leaving the possible command line switchers alone)
Product: [Unmaintained] kfile Reporter: 石庭豐 <lapsap7+kde>
Component: kpropertiesdialogAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: andresbajotierra, nate
Priority: NOR    
Version: 4.10.1   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description 石庭豐 2007-10-29 08:45:11 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Mandriva RPMs
OS:                Linux

Steps to reproduce the problem:
1. Create a "link to application" .desktop file, ie right-click anywhere on the desktop, choose "Create New" > "Link to Application..."

2. In Application tab, use ksystraycmd in the Command field. Eg
ksystraycmd kwrite

3. Validate the setup.

4. Right-click the file and choose to see its properties.  The word "ksystraycmd" would disappear from the Command field.  In our example, only the word "kwrite" remains!

But if we open the .desktop file in a text editor, we could see that "ksystraycmd" is still there, but it's hidden by properties window.

Is this a bug or a feature?  If it's a feature, why?  It's very annoying.

The first time I use ksystraycmd, I thought I had made mistake by forgetting to type ksystraycmd, but after a few tries, I was convinced that the problem didn't come from me!
Comment 1 Dario Andres 2009-05-01 17:31:56 UTC
This is an intended feature. It hiddens the "ksystraycmd" command but it enables the option "Place in SystemTray" in the Advanced settings of the shortcut
Comment 2 石庭豐 2009-05-02 11:58:55 UTC
Yes, I saw this as well a year ago.  But then the command becomes very odd when we need to specify ksystraycmd options, eg --hidden.

The Command field would become "--hidden kwrite".  Very odd.
Comment 3 Dario Andres 2009-05-02 19:21:09 UTC
Yes, that behaviour needs polishing. Reopening
Comment 4 Christoph Feck 2009-08-27 02:37:42 UTC
Moving from "kio/kfile" component to "kfile" product, helps sorting out duplicates.
Comment 5 Jekyll Wu 2013-03-13 14:12:41 UTC
Still an issue in KDE SC 4.10.1
Comment 6 Nate Graham 2018-06-15 02:31:25 UTC
ksystraycmd seems to be no more.