[Portland-bugs] [Bug 91027] New: xdg-open always adds a trailing slash to linked URL-based commands

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 19 00:45:15 PDT 2015


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

            Bug ID: 91027
           Summary: xdg-open always adds a trailing slash to linked
                    URL-based commands
           Product: Portland
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: cmartensms at gmail.com

xdg-open always adds a trailing slash to the url that is opened.


Example desktop entry:

[Desktop Entry]
Name=lycheejsURL
Exec=/opt/lycheejs/bin/helper.sh %u
Type=Application
NoDisplay=true
Categories=Development;System;
MimeType=x-scheme-handler/lycheejs;

Example shell script:

#!/bin/bash
echo "$1";


... will lead to this behaviour:

$ xdg-open lycheejs://boot=development
"lycheejs://boot=development/"


This is a bug that is occuring on Ubuntu 15.04 with version 1.1.0~rc1-2ubuntu10
of xdg-utils.

-- 
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/20150619/848be238/attachment.html>


More information about the Portland-bugs mailing list