Bug 31740

Summary: [PATCH] [xdg-email] Thunderbird is not detected with localized KDE 4
Product: Portland Reporter: Luc Menut <lmenut>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: use the correct profile name when it is not called "Default"

Description Luc Menut 2010-11-18 13:51:05 UTC
Currently, open_kde() searchs "thunderbird" only in the profile called "Default", but on localized KDE, the profile name "Default" is often translated; e.g. in french it is called "Par défaut". In these cases, Thunderbird is not detected and run_thunderbird() is not used, so that email attachments for Thunderbird doesn't work.

e.g. file emaildefaults on french KDE4
cat emaildefaults 
[Defaults]
Profile=Par défaut

[PROFILE_Par défaut]
EmailAddress=
EmailClient[$e]=mozilla-thunderbird
FullName=
Organization=
ReplyAddr=
ServerType=
TerminalClient=false

The patch in attachment fixes this issue.
Comment 1 Luc Menut 2010-11-18 13:57:26 UTC
Created attachment 40399 [details] [review]
use the correct profile name when it is not called "Default"
Comment 2 Rex Dieter 2010-11-18 14:14:54 UTC
Patch looks good, committed.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.