Handle ssh://[user@]host[:port] scheme links with your preferred terminal emulator in any freedesktop.org/XDG-compliant desktop environment, including Gnome, OpenBox, KDE & Xfce.
- gnome-terminal: opens a new tab titled
[user]@host - xfce4-terminal: opens a new tab titled
[user]@host - tmux: opens a new window named
[user]@host - kitty: opens a new tab titled
[user]@host; requires remote control be enabled - urxvt: opens a new window titled
[user]@host - xterm: opens a new window titled
[user]@host
- A supported terminal emulator (
xfce4-terminalrecommended) - openssh-client
- xdg-utils
sudo make install
make activateBy default, the handler will try to pick the first available terminal emulator from the TERMINAL_SEARCH_ORDER list in ssh-scheme-handler.py:
xfce4-terminalgnome-terminalurxvtxterm
Alternatively, the terminal emulator may be explicitly specified by:
- either, adding the
-t/--terminalargument to theExec=line inssh-scheme-handler.desktop, e.g.Exec=/usr/local/bin/ssh-scheme-handler %u -t tmux. - or, setting the
PREFERRED_TERMINAL_EMULATORenvironment variable, e.g.echo export PREFERRED_TERMINAL_EMULATOR=tmux >> ~/.xsessionrc(Xorg restart required).