#!/bin/bash
gnome-terminal -e "ssh `echo $1 | sed -e "s/ssh:\/\///"`"

using above script, just opens for 2 seconds and closes.
how can i have terminal display new devices in tabs and not open new window.

Thanks in-advance.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/3554

Title:
  Firefox ssh protocols handlers

Status in firefox package in Ubuntu:
  Won't Fix
Status in mozilla-firefox package in Ubuntu:
  Invalid
Status in ubufox package in Ubuntu:
  Won't Fix

Bug description:
  I found this on geeklog at
  
http://www.asyd.net/home/geeklog?DokuWiki=759f8f9926bc09e4e026de85ae7b1677#firefox_protocols_handlers

  It would be great to add this to the default firefox settings in
  ubuntu.

  
  In order to have Firefox launch a gnome-terminal for url which begin in 
ssh/telnet, I wrote a little script and made some changes in about:config

  prefs.js

  user_pref("network.protocol-handler.app.telnet", 
"/home/asyd/bin/firefox-handler.zsh");
  user_pref("network.protocol-handler.app.ssh", 
"/home/asyd/bin/firefox-handler.zsh");

  firefox-handler.zsh

  #!/bin/zsh
   
  url=$1
   
  proto=${url//:*/}
  data=${${url//*:\/\//}%/}
   
  /usr/bin/gnome-terminal -e "$proto $data"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/3554/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to