xdg-open is a very simple shell script which appears to do nothing to modify the URL parameter before passing it to the chosen desktop handler (so gnome-open for Ubuntu). Indeed, running:
gnome-open mailto:c...@tenshu.net will produce the same prefixed /// (xdg-email also calls gnome-open) gnome-open is even shorter than xdg-open, albeit in C. It appears to be doing the canonicalisation with calls to GIO. It seems as though passing a mailto: URI to a GIO function that creates a GFile (e.g. g_file_new_for_commandline_arg() which gnome-open uses) "may be slightly destructive", to quote GIO's ChangeLog. On the (admittedly somewhat arbitrary and potentially spurious) basis that something called GFile has no business dealing with things that aren't files, I've attached a naive patch to make gnome-open not feed mailto URIs through GFile. ** Attachment added: "Simple patch to avoid passing mailto URIs through GFile." http://launchpadlibrarian.net/22538982/unfail-mailto.diff ** Changed in: xdg-utils (Ubuntu) Status: New => Invalid ** Also affects: libgnome (Ubuntu) Importance: Undecided Status: New -- xdg-open mangles mailto: urls to ///f...@bar.com https://bugs.launchpad.net/bugs/291847 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs