xdg open has ignored my directives. I have found several threads regarding how to open ssh://user@ip links (these are in our monitoring software). I have run the following commands:
gconftool-2 -s /desktop/gnome/url-handlers/ssh/command '/home/dankney/bin/SSH.handler %s' --type String
gconftool-2 -s /desktop/gnome/url-handlers/ssh/enabled --type Boolean true
gconftool-2 -s /desktop/gnome/url-handlers/ssh/needs_terminal --type Boolean true
Yet still when I attempt to use xdg-open (as the chrome browser does) it attempts to sftp instead...
xdg-open ssh://root@1.2.3.4
gvfs-open: sftp://root@1.2.3.4/: error opening location: The specified location is not mounted
It seems to be set correctly in the registery thingy
gconftool-2 -a /desktop/gnome/url-handlers/ssh
command = /home/dankney/bin/SSH.handler %s
needs_terminal = true
enabled = true
Oh - here is the ls -alFh and contents of SSH.handler
ls -alFh /home/dankney/bin/SSH.handler
-rwxrwxr-x 1 dankney dankney 133 Sep 18 21:16 /home/dankney/bin/SSH.handler*
cat /home/dankney/bin/SSH.handler*
#!/bin/bash
url=$1
protocol=${url//:*/}
machine=${url//*:\/\//}
machine=${machine%/}
/usr/bin/gnome-terminal -e "$protocol $machine"
what gives?
Oh - btw - the shell script indeed does work if run from command line...
