Bug 275949 - Unable to set Kmail as default email provider in Gnome
Summary: Unable to set Kmail as default email provider in Gnome
Status: RESOLVED FIXED
Alias: None
Product: kdepim
Classification: Applications
Component: libkdepim (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-18 03:49 UTC by fougner89
Modified: 2011-10-05 12:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.3


Attachments
Fixes bug #275949 (675 bytes, patch)
2011-06-18 04:08 UTC, fougner89
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fougner89 2011-06-18 03:49:01 UTC
Version:           unspecified
OS:                Linux

The KMail.desktop file is missing the MimeType field

Reproducible: Always

Steps to Reproduce:
Open Gnome Control center-> default/preferred applications -> you can't choose KMail as default mail client!

Actual Results:  
More like what DID NOT happen...

Expected Results:  
Listed KMail
Comment 2 fougner89 2011-06-18 04:08:54 UTC
Created attachment 61104 [details]
Fixes bug #275949
Comment 3 Torgny Nyblom 2011-06-19 10:03:54 UTC
Please post this patch on git.reviewboard.kde.org as patches in bugzilla has a tendency to be forgotten.
Comment 4 David Faure 2011-09-07 16:09:13 UTC
The x-scheme-handler/mailto addition looks very much correct, since kmail can take a mailto URL as argument.

However the message/rfc822 addition doesn't look correct, since passing a path to a .eml file to kmail doesn't work, the command-line option --msg is necessary for that. So this would require a different .desktop file with --msg %f in the Exec line, but that wouldn't help "using kmail as the default mailer in gnome" since you want to run "kmail", not "kmail --msg".

Seems to me that this is an oversight in the way that gnome control center works. It cannot be assumed that we can just run the command for vieweing a mail file, and run that same command without arguments in order to start the full mail application.

Does it work ok if you only add the x-scheme-handler mimetype?
Comment 5 Laurent Montel 2011-10-05 07:47:11 UTC
For the moment I add just x-scheme-handler to desktop file.
I wait answer from fougner89@gmail.com 
Regards
Comment 6 Jeremy Bicha 2011-10-05 07:51:02 UTC
Laurent, gnome-control-center only looks for x-scheme-handler/mailto for the default email provider.

http://git.gnome.org/browse/gnome-control-center/tree/panels/info/cc-info-panel.c#n956
Comment 7 Laurent Montel 2011-10-05 07:53:50 UTC
So it will works fine I think :)
Sorry I don't use gnome environment so I can't validate it.
But I think that we can close it no ?
Comment 8 Jeremy Bicha 2011-10-05 07:59:34 UTC
Yes, this looks fixed to me. Will this be backported to 4.7.3 also?
Comment 9 Laurent Montel 2011-10-05 08:02:35 UTC
I backported to 4.7.3 yes.
So I close it.
Reopen if there is a pb :)
Regards