[Portland-bugs] [Bug 92008] New: xdg-email: generic mode does nothing

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 14 21:52:46 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=92008

            Bug ID: 92008
           Summary: xdg-email: generic mode does nothing
           Product: Portland
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: pelle at debian.org

Created attachment 118280
  --> https://bugs.freedesktop.org/attachment.cgi?id=118280&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20150915/f1aa9ecb/attachment.html>


More information about the Portland-bugs mailing list