[Portland-bugs] [Bug 34915] xdg-open cant open some valid urls (if URL doesnt match existing filename)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 2 15:42:15 PDT 2011


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

--- Comment #1 from Leho Kraav (:macmaN :lkraav) <leho at kraav.com> 2011-08-02 15:42:13 PDT ---
i think this bug is the closest to the way xdg-open is broken for me on gentoo
+ awesome wm, i.e. i also fall back to open_generic:

$ xdg-open 'http://www.google.com'
+ check_common_commands http://www.google.com
+ '[' 1 -gt 0 ']'
+ parm=http://www.google.com
+ shift
+ case "$parm" in
+ '[' 0 -gt 0 ']'
+ '[' -z '' ']'
+ unset XDG_UTILS_DEBUG_LEVEL
+ '[' 0 -lt 1 ']'
+ xdg_redirect_output=' > /dev/null 2> /dev/null'
+ '[' xhttp://www.google.com '!=' x ']'
+ url=
+ '[' 1 -gt 0 ']'
+ parm=http://www.google.com
+ shift
+ case "$parm" in
+ '[' -n '' ']'
+ url=http://www.google.com
+ '[' 0 -gt 0 ']'
+ '[' -z http://www.google.com ']'
+ detectDE
+ '[' x = xtrue ']'
+ '[' x '!=' x ']'
++ dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus
org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager
+ xprop -root _DT_SAVE_MODE
+ grep ' = \"xfce4\"$'
+ '[' x == xLXDE ']'
+ DE=
+ '[' x = x ']'
+ DE=generic
+ '[' x/usr/bin/firefox-bin = x ']'
+ case "$DE" in
+ open_generic http://www.google.com
+ echo http://www.google.com
+ grep -q '^file://'
+ echo http://www.google.com
+ egrep -q '^[a-zA-Z+\.\-]+:'
+ local file=http://www.google.com
+ echo http://www.google.com
+ grep -q '^file:///'
+ check_input_file http://www.google.com
+ '[' '!' -e http://www.google.com ']'
+ exit_failure_file_missing 'file '\''http://www.google.com'\'' does not exist'
+ '[' 1 -gt 0 ']'
+ echo 'xdg-open: file '\''http://www.google.com'\'' does not exist'
xdg-open: file 'http://www.google.com' does not exist
+ exit 2

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