I configured evince to be my default application to open pdf files (using Open with... and clicking on always opening pdf files with this application), but when I type gnome-open foo.pdf
instead of evince, I have Nautilus that opens up in the correct folder highlighting the file of my choice.
This is especially disturbing since I am using the LaTeX plugin for gedit, and when I try and compile a tex file to pdf, instead of opening up a new window with my compiled pdf file, I just have nautilus pop-up. I know I can edit the scripts of my gedit LaTeX plugin to call on evince (or acroread) with the pdf I want opened, but this is a workaround and not the solution I am looking for.
xdg-open
?xdg-open
? Never heard of it.gvfs-open
, whilegnome-open
is used as a fallback if gvfs-open is not found. Its strongly recomended that you use xdg-open instead of gnome-open, so your scripts/apps/whatever will be much more portable (and future-proof)