From 57919885ef8c7e074224d02de8ea0b42c41df909 Mon Sep 17 00:00:00 2001 From: William Light Date: Wed, 14 Sep 2011 14:47:42 +0200 Subject: [PATCH] xdg-open: Add ssh:// URL support to open_generic() --- scripts/xdg-open | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/scripts/xdg-open b/scripts/xdg-open index fee4204..9a6689a 100755 --- a/scripts/xdg-open +++ b/scripts/xdg-open @@ -443,6 +443,12 @@ open_generic() fi fi + if (echo "$1" | grep -q '^ssh://'); then + # support different terminals? + xterm -e "ssh ${1#ssh://}" + [ $? -eq 0 ] && exit_success; + fi + IFS=":" for browser in $BROWSER; do if [ x"$browser" != x"" ]; then -- 1.7.6.1