Bug 199453

Summary: "Use a different email client" copies the command entry from .dekstop file as it is
Product: [Applications] systemsettings Reporter: Avi Shteiman <avi>
Component: kcm_componentchooserAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: adaptee, andresbajotierra, montel
Priority: NOR    
Version First Reported In: 4.9.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Avi Shteiman 2009-07-08 18:29:58 UTC
Version:            (using KDE 4.2.4)
Compiler:          gcc-4.3.3-r2 
OS:                Linux
Installed from:    Gentoo Packages

In systemsettings going to General -> Default Applications -> Email Client -> Use a different email client:

And pressing the "..." button opens the applications browser. Choosing an application e.g. mozilla-firefox applies the string: "/usr/bin/firefox %U".

Only by accident I discovered that it should be %u (stands for mailto: URI). If not corrected it causes the browser to go to "http://www.%u.com/".
Comment 1 Dario Andres 2009-08-18 20:54:22 UTC
The component chooser is not setting the %U (nor any other parameter). It is only copying all the Command entry of the .desktop files that the "Open with" dialog shows. 

So if "firefox %U" is appearing, it is because that is the Command entry.

May be some check could be added to convert %U to %u if that is the case... (for email client at least)

Updating the title to reflect the discovery.
Regards
Comment 2 Jekyll Wu 2012-12-05 05:16:49 UTC
The real problem is this kcm should strip "thunderbird %U" (obtained from thunderbird.desktop) to "thunderbird". Copying it as it is will not work. Only the binary name itself is needed.
Comment 3 Laurent Montel 2015-03-08 11:37:05 UTC
I can not reproduce in last version.
I think it's fixed.
Reopen if you can reproduce it