[GTALUG] odd evince command behaviour

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Tue Jan 12 15:43:55 EST 2021


On Fri, Jan 08, 2021 at 04:10:46PM -0500, Aruna Hewapathirane via talk wrote:
> I had no idea evince can ftp till just now either..

Apparently it uses gvfs for file access and gvfs supports various url
formats, and also things like 'trash:///my_file.pdf' if you use the
trashcan in gnome.

> I just tried it and yes it works but I do not yet fully understand the
> reason why it does work? Further
> clarification would be most welcome ?

The / in ./ makes it obvious that it is not a url since you can't have a
/ in the protocol name.  gvfs thinks 're' is a protocol and hence 're:'
is using that protocol to refer to the rest of the filename.

> Tried all possible escape sequence but zilch. No cigar :-(
> And this is a bug that was documented way back in 2015
> https://bugzilla.redhat.com/show_bug.cgi?id=1248086

And years later they are still arguing about how gvfs should handle this.

Apparently using a full path starting with / works fine, using ./ in
front works file.  You can do 'file:///path/to/re: file.pdf' as well,
but that's no different than using '/path/to/re: file.pdf'

I would definitely avoid : in my filenames just for compatibility
in general.

-- 
Len Sorensen


More information about the talk mailing list