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
Next revision
Previous revision
wiki:create_custom_uri_url_handlers [2021/04/16 13:44] – remove '[]' around tags 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
 </file> </file>
  
-Save it in ''~/.local/bin'', make it executable.+Save it in ''~/.local/bin'', make it executable. Add this to you PATH bash variable.
  
 ===== Registering Custom URI Handler ===== ===== Registering Custom URI Handler =====
wiki/create_custom_uri_url_handlers.1618573499.txt.gz · Last modified: 2021/04/16 13:44 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