exo-open ssh://<computer>

Jeff Sadowski jeff.sadowski at gmail.com
Tue Apr 4 21:00:57 CEST 2017


xdg-mime default scp.desktop x-scheme-handler/scp
nano ~/.local/share/applications/scp.desktop

<=============content
[Desktop Entry]
Version=1.0
Type=Application
Exec=bash -c '(URL="%U" HOST="${URL:6}"; $HOME/test_scp.sh $HOST); bash'
Icon=utilities-terminal
StartupNotify=true
Terminal=true
MimeType=x-scheme-handler/ssh
Name=SSH Launcher
Comment=Launch SSH
<===============end content

did work.

On Tue, Apr 4, 2017 at 12:31 PM, Jeff Sadowski <jeff.sadowski at gmail.com>
wrote:

> I never added scp with xdg-mime. I did add ssh which seems to work for
> gnome-open but not for exo-open.
>
> On Tue, Apr 4, 2017 at 12:28 PM, Jeff Sadowski <jeff.sadowski at gmail.com>
> wrote:
>
>> Failed to open URI "scp://jeff-server/home/jeff/testfile".
>> The specified location is not supported
>>
>> On Tue, Apr 4, 2017 at 12:18 PM, killermoehre <killermoehre at gmx.net>
>> wrote:
>>
>>>
>>>
>>> Am 4. April 2017 19:57:32 MESZ schrieb Jeff Sadowski <
>>> jeff.sadowski at gmail.com>:
>>> >I would like to set exo-open to run a script of mine in the default
>>> >terminal program.
>>> >
>>> >I have "gnome-open ssh://<computer>" acting as I like by using:
>>> >
>>> >xdg-mime default ssh.desktop x-scheme-handler/ssh
>>> >
>>> >and used a text editor to make ~/.local/share/applications/ssh.desktop
>>> >
>>> >But xdg-open uses exo-open for XFCE4 so I would like to know how to
>>> >setup
>>> >exo-open to recognize a new protocol like ssh://<computer>?
>>> >
>>> >Is this possible?
>>> >
>>> >The purpose is to use this in google-chrome. Google-chrome doesn't give
>>> >an
>>> >option to send more arguments that I can see.
>>> >
>>> >I see people talking about adding options to the command line but as I
>>> >said
>>> >that will not work as other programs will not send those to xdg-open.
>>>
>>> Hi Jeff,
>>>
>>> does it work if you just use »exo-open sftp://host/path/to/file«?
>>> _______________________________________________
>>> Xfce mailing list
>>> Xfce at xfce.org
>>> https://mail.xfce.org/mailman/listinfo/xfce
>>> http://www.xfce.org
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.xfce.org/pipermail/xfce/attachments/20170404/6097ed45/attachment-0001.html>


More information about the Xfce mailing list