[Portland-bugs] [Bug 38121] New: xdg-open generic should call xdg-email for mailto: links

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 9 09:58:20 PDT 2011


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

           Summary: xdg-open generic should call xdg-email for mailto:
                    links
           Product: Portland
           Version: 1.1.0 rc1
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
        AssignedTo: portland-bugs at lists.freedesktop.org
        ReportedBy: chadberg at gmail.com


Not every application is well enough behaved to call xdg-email for mailto:
links, and not everyone is using a DE that will handle this.  In these cases,
xdg-open should detect the mailto: and pass it on to xdg-email.

e.g., in my own xdg-open I have added 

> if (echo "$1" | grep -q '^mailto:')
>         then xdg-email "$1"
>         exit_success
>     fi

to the open_generic routine, after the file: check and before passing it to the
browser.  I had a circumstance where clicking a mailto: on a web page was
opening a new blank browser window instead of the intended behavior.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Portland-bugs mailing list