User Tools

Site Tools


wiki:create_custom_uri_url_handlers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:create_custom_uri_url_handlers [2021/06/02 15:48] – [Create handler script itself] add PATH note antisawiki:create_custom_uri_url_handlers [2021/06/04 09:21] (current) – add gnome-terminal in handler script antisa
Line 37: Line 37:
     [ -z "$port" ] && port="22"     [ -z "$port" ] && port="22"
          
-    terminator -e "ssh $user@$host -p $port"+    gnome-terminal -- ssh $user@$host -p $port 
 +#    terminator -e "ssh $user@$host -p $port" 
 # else $1 is in the form of ssh://host which uses our .ssh/config aliases # else $1 is in the form of ssh://host which uses our .ssh/config aliases
 else else
Line 43: Line 45:
     host=$(echo ${1} | awk -F// '{ print $2 }')     host=$(echo ${1} | awk -F// '{ print $2 }')
     host=${host%/} # Remove trailing slash (seems to be passed in URI)     host=${host%/} # Remove trailing slash (seems to be passed in URI)
-    terminator -e "ssh $host"+     
 +    gnome-terminal -- ssh $user@$host -p $port 
 +#    terminator -e "ssh $host" 
 fi fi
 ) >> /tmp/ssh-handler 2>&1 ) >> /tmp/ssh-handler 2>&1
wiki/create_custom_uri_url_handlers.1622641714.txt.gz · Last modified: 2021/06/02 15:48 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki