[FIX] gnome-open/gvfs-open open nautilus instead of actual file

When using gnome-open/gvfs-open to open a file when nautilus is set as the default file manager, the file is not opened with the preferred application, instead nautilus is opens highlighting the file.

After some research I found this to be a bug yet to be fixed. But knowing that exo-open behaves properly, I came out a solution that's a little a hack: replace gnome-open and gvfs-open for exo-open.

Fix for YOUR USER only

As a prerequisite you should have a "bin" directory on your $HOME and it should be added to your $PATH. Them open a terminal window and run:

ln -s `which exo-open` ~/bin/gnome-open && ln -s `which exo-open` ~/bin/gvfs-open


Fix for ALL USERS

Open a terminal window and run:

# backup sudo mv /usr/bin/gnome-open /usr/bin/gnome-open-bak sudo mv /usr/bin/gvfs-open /usr/bin/gvfs-open-bak # create symbolic link to exo-open sudo ln -s /usr/bin/exo-open /usr/bin/gnome-open && sudo ln -s /usr/bin/exo-open /usr/bin/gvfs-open

References

http://askubuntu.com/questions/35602/using-gnome-open-to-open-pdf-files

Comments

  1. Another solution seems to be to add:

    export DE=xfce

    to ~/.xinitrc and ~/.bashrc

    ReplyDelete
  2. (To add to my previous comment: and then use xdg-open)

    ReplyDelete

Post a Comment

Popular posts from this blog

[FIX] VLC is unable to open the MRL (smb://)

Add items to Xfce Applications Menu