GNOME Bugzilla – Bug 685948
gtk_show_uri always opens nautilus
Last modified: 2012-10-31 19:29:48 UTC
Created attachment 226247 [details] Small vala program that shows every file in nautilus This is not a LaTeXila bug, merely a misconfiguration: Whenever something is being opened using gtk_show_uri() nautilus pops up instead of e.g. evince for PDF files. I suggest implementing a mechanism that allows the user to choose what program (exo-open, gnome-open,...) is used to open files, until this is fixed. The attached program outputs no information related to this problem.
From the thread on the mailing list [1], this bug occurs in Xfce when Nautilus is installed, on Arch Linux. With Fedora 17 (also on Xfce with Nautilus installed), this bug doesn't occur for me. If you create a new user on your system, so that all the configuration files etc are clean, does the bug still occur? In Nautilus, you can see which default programs are assigned for each type of files. For example, if you open PDF files from Nautilus, is it correctly opened with Evince? Anyway, gtk_show_uri() is the recommended method for opening files with the default application. I'll not change that in LaTeXila. [1] https://mail.gnome.org/archives/latexila-list/2012-October/msg00001.html
Created attachment 227482 [details] Test gtk_show_uri(), and print additional informations Here is a better program, that prints additional informations. With Xfce 4.8 on Fedora 17, the result is the same whether Nautilus is installed or not: $ ./test_open_file ~/test/samples/sample.pdf Default application Name: File Manager Command line: exo-open --launch FileManager %u Open URI file:///home/seb/test/samples/sample.pdf
I just found the root cause of this problem: in ~/.local/share/applications/mimeapps.list I had to remove the following line from [Added Associations] x-scheme-handler/file=exo-file-manager.desktop Now everything works as expected.