Bug 91027 - xdg-open always adds a trailing slash to linked URL-based commands
Summary: xdg-open always adds a trailing slash to linked URL-based commands
Status: RESOLVED NOTOURBUG
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-19 07:45 UTC by cmartensms
Modified: 2015-06-22 17:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description cmartensms 2015-06-19 07:45:15 UTC
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.
Comment 1 Rex Dieter 2015-06-19 14:17:42 UTC
Under what desktop environment do you see this?
Comment 2 cmartensms 2015-06-19 17:22:45 UTC
Validated on GNOME Shell 3.14.4, but I think it occurs on XFCE, too.
(Can't test atm)
Comment 3 Rex Dieter 2015-06-19 17:25:17 UTC
ok, what happens if you try:

gvfs2-open lycheejs://boot=development

?
Comment 4 cmartensms 2015-06-19 17:58:22 UTC
gvfs-open lycheejs://boot=development results in the same behaviour with the trailing slash.
Comment 5 Rex Dieter 2015-06-19 18:05:50 UTC
OK, the bug is there then, not with xdg-utils
Comment 6 cmartensms 2015-06-19 18:47:22 UTC
Where to report the Bug then? Is it a Bug from Debian, is it a Bug from Ubuntu, is it a Bug that should land on launchpad, is it a bug that should land on some project's bugtracker?

I tried to use reportbug from Debian (as stated in their bug "tracker"), but seriously, this shit is totally broken on Ubuntu.


Note that I'm an enduser that tries to file a bug, not to compile half of an operating system to do so.
Comment 7 Rex Dieter 2015-06-22 17:06:14 UTC
I'd recommend starting with reporting the bug to your distro against gvfs component (owner of gvfs-open)


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.