<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 10:59 AM, Jeff Sadowski <span dir="ltr"><<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Apr 5, 2017 at 10:48 AM, killermoehre <span dir="ltr"><<a href="mailto:killermoehre@gmx.net" target="_blank">killermoehre@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Am 05.04.2017 um 18:25 schrieb Jeff Sadowski:<br>
> for now I wrote a wrapper like so<br>
><br>
> #!/bin/bash<br>
> if [ "${1:0:6}" = "ssh://" ];then<br>
> /usr/bin/gnome-open "$@"<br>
> else<br>
> /usr/bin/exo-open-moved "$@"<br>
> fi<br>
><br>
> I moved /usr/bin/exo-open to /usr/bin/exo-open-moved<br>
> and linked to my wrapper from /usr/bin/exo-open<br>
><br>
><br>
> On Tue, Apr 4, 2017 at 4:19 PM, Jeff Sadowski <<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a><br>
</span><span>> <mailto:<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.co<wbr>m</a>>> wrote:<br>
><br>
> After a while I get a message in a popup:<br>
><br>
> Failed to open "File System".<br>
> Connection failed.<br>
><br>
> On Tue, Apr 4, 2017 at 1:13 PM, Jeff Sadowski<br>
</span><span>> <<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a> <mailto:<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.co<wbr>m</a>>> wrote:<br>
><br>
> So most other protocols it looks like I can setup as I want why<br>
> can't I set ssh or sftp what would be preventing that?<br>
> I tried with ssi://<computer> and did what I did with ssh<br>
> replacing the ssi at the end and it launches my ssh with the<br>
> ssi://<computer> link<br>
><br>
> On Tue, Apr 4, 2017 at 1:09 PM, Jeff Sadowski<br>
</span><span>> <<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a> <mailto:<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.co<wbr>m</a>>> wrote:<br>
><br>
> I realize you said sftp not scp which when I tried sftp it<br>
> did nothing like ssh did.<br>
> When I tried setting it with xdg-mime it still does nothing.<br>
> Interesting that scp did work.<br>
><br>
> On Tue, Apr 4, 2017 at 1:00 PM, Jeff Sadowski<br>
</span>> <<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a> <mailto:<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.co<wbr>m</a>>><br>
<span>> wrote:<br>
><br>
> xdg-mime default scp.desktop x-scheme-handler/scp<br>
> nano ~/.local/share/applications/sc<wbr>p.desktop<br>
><br>
> <=============content<br>
> [Desktop Entry]<br>
> Version=1.0<br>
> Type=Application<br>
> Exec=bash -c '(URL="%U" HOST="${URL:6}";<br>
> $HOME/test_scp.sh $HOST); bash'<br>
> Icon=utilities-terminal<br>
> StartupNotify=true<br>
> Terminal=true<br>
> MimeType=x-scheme-handler/ssh<br>
> Name=SSH Launcher<br>
> Comment=Launch SSH<br>
> <===============end content<br>
><br>
> did work.<br>
><br>
> On Tue, Apr 4, 2017 at 12:31 PM, Jeff Sadowski<br>
> <<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a><br>
</span><span>> <mailto:<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.c<wbr>om</a>>> wrote:<br>
><br>
> I never added scp with xdg-mime. I did add ssh which<br>
> seems to work for gnome-open but not for exo-open.<br>
><br>
> On Tue, Apr 4, 2017 at 12:28 PM, Jeff Sadowski<br>
> <<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a><br>
</span><span>> <mailto:<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.c<wbr>om</a>>> wrote:<br>
><br>
> Failed to open URI<br>
> "scp://jeff-server/home/jeff/<wbr>testfile".<br>
> The specified location is not supported<br>
><br>
> On Tue, Apr 4, 2017 at 12:18 PM, killermoehre<br>
> <<a href="mailto:killermoehre@gmx.net" target="_blank">killermoehre@gmx.net</a><br>
</span><span>> <mailto:<a href="mailto:killermoehre@gmx.net" target="_blank">killermoehre@gmx.net</a>><wbr>> wrote:<br>
><br>
><br>
><br>
> Am 4. April 2017 19:57:32 MESZ schrieb Jeff<br>
> Sadowski <<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.com</a><br>
</span>> <mailto:<a href="mailto:jeff.sadowski@gmail.com" target="_blank">jeff.sadowski@gmail.c<wbr>om</a>>>:<br>
<div><div class="m_3928892126375354018h5">> >I would like to set exo-open to run a<br>
> script of mine in the default<br>
> >terminal program.<br>
> ><br>
> >I have "gnome-open ssh://<computer>" acting<br>
> as I like by using:<br>
> ><br>
> >xdg-mime default ssh.desktop<br>
> x-scheme-handler/ssh<br>
> ><br>
> >and used a text editor to make<br>
> ~/.local/share/applications/s<wbr>sh.desktop<br>
> ><br>
> >But xdg-open uses exo-open for XFCE4 so I<br>
> would like to know how to<br>
> >setup<br>
> >exo-open to recognize a new protocol like<br>
> ssh://<computer>?<br>
> ><br>
> >Is this possible?<br>
> ><br>
> >The purpose is to use this in<br>
> google-chrome. Google-chrome doesn't give<br>
> >an<br>
> >option to send more arguments that I can see.<br>
> ><br>
> >I see people talking about adding options<br>
> to the command line but as I<br>
> >said<br>
> >that will not work as other programs will<br>
> not send those to xdg-open.<br>
><br>
> Hi Jeff,<br>
><br>
> does it work if you just use »exo-open<br>
> sftp://host/path/to/file«?<br>
<br>
</div></div>Hi,<br>
<br>
»xdg-open ssh://host/path/to/file« is working very well for me on my<br>
Arch Linux without any need for wrappers. But if you want to be a little<br>
bit more purist, use first »gvfs-mount ssh://host/path/to/file« and than<br>
»gvfs-open ssh://host/path/to/file«, because exo-open (called by<br>
xdg-open if this script detects Xfce) is basically falling back to gvfs<br>
(first mounting, than opening) if available.<br></blockquote><div><br></div></div></div><div>Are you able to change the behavior for ssh:// and sftp:// as I tried with xdg-mime?</div><div>I'm using Ubuntu 16.04 with the xfce4 desktop</div><div>I think something is set somewhere preventing me from changing the defaults for exo-open which I don't know what they are set to do.</div><div>When I messed up and set scp I was able to get that working as I wanted but I can not change the behavior of ssh:// or sftp:// </div></div></div></div></blockquote><div>Re-reading what you said I'd definitely want to change the default behavior of ssh://</div><div>as I expect it to be ssh://[username[:password]@]host[:port] format as described elsewhere on the net. Not at all like a file path.</div><div>I don't want gvfs touching it.</div><div>That is likely what it is doing is trying to give it to gvfs it would make sense of the error messages but not at all what I want ssh:// doing.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>______________________________<wbr>_________________<br>
Xfce mailing list<br>
<a href="mailto:Xfce@xfce.org" target="_blank">Xfce@xfce.org</a><br>
<a href="https://mail.xfce.org/mailman/listinfo/xfce" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/<wbr>listinfo/xfce</a><br>
<a href="http://www.xfce.org" rel="noreferrer" target="_blank">http://www.xfce.org</a><br></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>