Since GNOME 2.22, gvfs-open should be used by default for GNOME instead of gnome-open and only use gnome-open if gvfs-open fails. Nautilus no-longer passes file association changes to gnome-open which can cause files passed to xdg-open to fail with a no associated program error.
Is the syntax/usage the same (gvs2-open vs gnome-open)?
Yes, same syntax, I just replaced 'gnome-open' with 'gvfs-open' in my xdg-open script and it works fine.
Created attachment 17823 [details] [review] Simple patch which uses gvfs-open if it exists and gnome-open otherwise A trivial change to the open_gnome function which checks for /usr/bin/gvfs-open and uses it if it exists, and gnome-open otherwise. Seems like there should be a better way to do this, i.e. by determining if the gvfs-open executable is somewhere on PATH instead of hardcoding the /usr/bin directory, but my shell scripting ability is low.
I have checked in the code, and a similar workaround is already applied. Closing bug.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.