I get errors for both.
$ xdg-open http://www.ubuntu.com Error showing url: Operation not supported
$ bash -x /usr/bin/xdg-open http://www.ubuntu.com + check_common_commands http://www.ubuntu.com + '[' 1 -gt 0 ']' + parm=http://www.ubuntu.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.ubuntu.com '!=' x ']' + url= + '[' 1 -gt 0 ']' + parm=http://www.ubuntu.com + shift + case "$parm" in + '[' -n '' ']' + url=http://www.ubuntu.com + '[' 0 -gt 0 ']' + '[' -z http://www.ubuntu.com ']' + detectDE + '[' x = xtrue ']' + '[' xthis-is-deprecated '!=' x ']' + DE=gnome + '[' xgnome = x ']' + case "$DE" in + open_gnome http://www.ubuntu.com + gnome-open http://www.ubuntu.com Error showing url: Operation not supported + '[' 1 -eq 0 ']' + exit_failure_operation_failed + '[' 0 -gt 0 ']' + exit 4
I get errors for both.
$ xdg-open http:// www.ubuntu. com
Error showing url: Operation not supported
$ bash -x /usr/bin/xdg-open http:// www.ubuntu. com commands http:// www.ubuntu. com www.ubuntu. com DEBUG_LEVEL output= ' > /dev/null 2> /dev/null' /www.ubuntu. com '!=' x ']' www.ubuntu. com www.ubuntu. com www.ubuntu. com ']' www.ubuntu. com www.ubuntu. com operation_ failed
+ check_common_
+ '[' 1 -gt 0 ']'
+ parm=http://
+ shift
+ case "$parm" in
+ '[' 0 -gt 0 ']'
+ '[' -z '' ']'
+ unset XDG_UTILS_
+ '[' 0 -lt 1 ']'
+ xdg_redirect_
+ '[' xhttp:/
+ url=
+ '[' 1 -gt 0 ']'
+ parm=http://
+ shift
+ case "$parm" in
+ '[' -n '' ']'
+ url=http://
+ '[' 0 -gt 0 ']'
+ '[' -z http://
+ detectDE
+ '[' x = xtrue ']'
+ '[' xthis-is-deprecated '!=' x ']'
+ DE=gnome
+ '[' xgnome = x ']'
+ case "$DE" in
+ open_gnome http://
+ gnome-open http://
Error showing url: Operation not supported
+ '[' 1 -eq 0 ']'
+ exit_failure_
+ '[' 0 -gt 0 ']'
+ exit 4