GNOME Bugzilla – Bug 456903
Opening results with xdg broken
Last modified: 2007-07-21 22:47:06 UTC
Please describe the problem: The logic to use xdg-open to open a search result when clicked is completely broken. (See open_file_cb()). xdg-open is only used when open_file_with_application() fails and the element is a directory. Steps to reproduce: On my KDE Desktop: Search for a PDF file and double click it. Actual results: It's opened with xpdf because that seems to be the registered application for PDF files in the gnome database. (I don't use Gnome.) Expected results: It should be opened with KPDF as this is the application that gets started when I execute "xdg-open file.pdf" manually. Does this happen every time? Yes. Other information: There's also a report in the debian bugtracker: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=415705
Created attachment 91897 [details] [review] attempts to fix xdg-open brokenness
needs to be changed slightly if its a folder then it works ok with xdg-open if xdg-open is not present then it looks like it fail. Suggest using gnome-open as a fallback for directories (non-gnome users will have to make sure they have xdg-open installed)
Created attachment 91900 [details] [review] another attempt to fix xdg-open brokenness
Fixed in svn with quite a bit of modification to your patch