After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685948 - gtk_show_uri always opens nautilus
gtk_show_uri always opens nautilus
Status: RESOLVED NOTABUG
Product: gnome-latex
Classification: Other
Component: general
2.6.x
Other Linux
: Normal normal
: unspecified
Assigned To: LaTeXila maintainer(s)
LaTeXila maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-10-11 10:44 UTC by Bernd Prünster
Modified: 2012-10-31 19:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Small vala program that shows every file in nautilus (130 bytes, text/x-vala)
2012-10-11 10:44 UTC, Bernd Prünster
Details
Test gtk_show_uri(), and print additional informations (1.25 KB, text/plain)
2012-10-28 21:25 UTC, Sébastien Wilmet
Details

Description Bernd Prünster 2012-10-11 10:44: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.
Comment 1 Sébastien Wilmet 2012-10-28 18:41:20 UTC
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
Comment 2 Sébastien Wilmet 2012-10-28 21:25:12 UTC
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
Comment 3 Bernd Prünster 2012-10-31 19:29:48 UTC
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.