Summary: | xdg-email: generic mode does nothing | ||
---|---|---|---|
Product: | Portland | Reporter: | Per Olofsson <pelle> |
Component: | xdg-utils | Assignee: | Portland Bugs <portland-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | xdg-email-try-xdg-open.patch |
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.
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.