Bug 92008 - xdg-email: generic mode does nothing
Summary: xdg-email: generic mode does nothing
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-09-15 04:52 UTC by Per Olofsson
Modified: 2015-09-16 15:16 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xdg-email-try-xdg-open.patch (635 bytes, text/plain)
2015-09-15 04:52 UTC, Per Olofsson
Details

Description Per Olofsson 2015-09-15 04:52:46 UTC
Created attachment 118280 [details]
xdg-email-try-xdg-open.patch

Currently, xdg-email only supports Thunderbird in generic mode. If x-scheme-handler/mailto is assigned to something else, nothing happens, due to the following code:

    echo $client | grep thunderbird > /dev/null 2>&1
    if [ $? -eq 0 ] ; then
        run_thunderbird "$client" "$1"
    fi

    if [ $? -eq 0 ]; then
        exit_success
    else
        exit_failure_operation_failed
    fi

Unless Thunderbird is the default mail client, the above code will always call exit_success since the previous if statement will set $? to 0.

I have attached a patch that tries to call xdg-open instead. If xdg-open fails to find an e-mail client, it falls through to the browser code.


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.