wiki:create_custom_uri_url_handlers
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:create_custom_uri_url_handlers [2020/12/04 15:06] – created antisa | wiki:create_custom_uri_url_handlers [2021/06/04 07:21] (current) – add gnome-terminal in handler script antisa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag>[desktop bash scripts]}} | + | {{tag> |
| ====== Create custom URI/URL handlers ====== | ====== Create custom URI/URL handlers ====== | ||
| Line 37: | Line 37: | ||
| [ -z " | [ -z " | ||
| | | ||
| - | 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%/ | host=${host%/ | ||
| - | terminator -e "ssh $host" | + | |
| + | gnome-terminal -- ssh $user@$host -p $port | ||
| + | # | ||
| fi | fi | ||
| ) >> / | ) >> / | ||
| </ | </ | ||
| - | Save it in '' | + | Save it in '' |
| ===== Registering Custom URI Handler ===== | ===== Registering Custom URI Handler ===== | ||
wiki/create_custom_uri_url_handlers.1607094410.txt.gz · Last modified: by antisa
