generic x-scheme-handler required
Working with telnet:// and ssh:// handlers requires support in xdg-open to support these. Chrome by default uses xdg-open to open these URIs and with Trusty these are not supported. Here's a patch that works for (it might not be generic enough, though). Also wondering if the scheme RE can actually contain a + as in here ^[a-zA-Z+\.\-]+: or if this would be a better RE ^[a-zA-Z\.\-]+://
Might be that this has to be fixed upstream...
Thanks,
-ralph
*** /usr/bin/
--- /usr/bin/xdg-open 2015-10-05 17:44:28.590111802 +0200
***************
*** 384,390 ****
open_
{
! filetype=`xdg-mime query filetype "$1" | sed "s/;.*//"`
default=
if [ -n "$default" ] ; then
--- 384,394 ----
open_
{
! if [ -z $2 ]; then
! filetype=`xdg-mime query filetype "$1" | sed "s/;.*//"`
! else
! filetype=$2
! fi
default=
if [ -n "$default" ] ; then
***************
*** 406,411 ****
--- 410,417 ----
fi
done
+ else
+ exit_failure_
fi
}
***************
*** 444,449 ****
--- 450,461 ----
fi
fi
+ elif (echo "$1" | egrep -q '^[a-zA-
+ local handler=$(echo "$1" | sed -re 's#^([a-
+ open_generic_
+ if [ $? -eq 0 ]; then
+ exit_success
+ fi
fi
OLDIFS="$IFS"
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu xdg-utils Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: