Hi Michael, thanks for your quick response. I had a look in the sources myself and noticed that the quoted code is only used if
else if (open_file_with_application (gsearch->window, locale_file) == FALSE) {
which (unfortunately) doesn't happen on my system.
I attached the strace output of opening a PDF file. There you can see how
t-s-t figures out which application to use.
- David
> t-s-t uses xdg-open to start the right application to open documents.
> If xdg-open is not found, it falls back to nautilus. This is the code in
> t-s-t:
>
> if (open_file_with_xdg_open (gsearch->window, locale_file) == FALSE) {
> if (open_file_with_nautilus (gsearch->window, locale_file) == FALSE) {
>
> display_dialog_could_not_open_folder (gsearch->window, uri);
> }
> }
>
> So there must be something else going wrong.
> Maybe your pdf has the executable bit set and t-s-t tries to execute.
>
> Could you send me the pdf? Is this problem reproducible?
>
> Cheers,
> Michael
tst-trace.gz
Description: GNU Zip compressed data
pgphngkkU5YtF.pgp
Description: PGP signature

