[Portland-bugs] [Bug 45859] xdg-open fails to open a url in a "generic" environment

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jun 16 05:23:22 PDT 2012


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

--- Comment #1 from Mateusz Loskot <mateusz at loskot.net> 2012-06-16 05:23:22 PDT ---
Created attachment 63106
  --> https://bugs.freedesktop.org/attachment.cgi?id=63106
Complete log generated with bash -xv xdg-open URL

I can confirm this bug on Arch Linux (up-to-date).

Here is relevant part of my output generated for:
bash -xv xdg-open "http://www.gnu.org"

+ IFS=:
+ for browser in '$BROWSER'
+ '[' xx-www-browser '!=' x ']'
printf "$browser" "$1" 2>/dev/null
++ printf x-www-browser http://www.gnu.org
+ browser_with_arg=x-www-browser
+ '[' 0 -ne 0 ']'
+ '[' xx-www-browser = xx-www-browser ']'
+ eval '$browser $1 > /dev/null 2> /dev/null'
$browser $1 > /dev/null 2> /dev/null
++ x-www-browser http //www.gnu.org
+ '[' 127 -eq 0 ']'
+ for browser in '$BROWSER'
+ '[' xfirefox '!=' x ']'
printf "$browser" "$1" 2>/dev/null
++ printf firefox http://www.gnu.org
+ browser_with_arg=firefox
+ '[' 0 -ne 0 ']'
+ '[' xfirefox = xfirefox ']'
+ eval '$browser $1 > /dev/null 2> /dev/null'
$browser $1 > /dev/null 2> /dev/null
++ firefox http //www.gnu.org


Notice the URL split into "http" and "//www.gnu.org" parts.

Complete log attached.


My environment:
mloskot ~ $ uname -a
Linux dog 3.4.2-2-ARCH #1 SMP PREEMPT Mon Jun 11 22:27:17 CEST 2012 x86_64
GNU/Linux

mloskot ~ $ firefox -v
Mozilla Firefox 13.0.1

mloskot ~ $ xdg-open --version
xdg-open 1.1.0 rc1

-- 
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