Description of problem: In generic DE (i.e no KDE, GNOME, XFCE), xdg-open doesn't open URLs when the mimeopen utility is installed. Version-Release number of selected component (if applicable): xdg-utils-1.0.2-2.fc8 How reproducible: always Steps to Reproduce: 1. install perl-File-MimeInfo package 2. start plain X session 3. xdg-open 'http://fedoraproject.org/' Actual results: Error message: Could not determine mimetype for file: http://fedoraproject.org/ Expected results: The web page opened in a browser. Additional info:
Try this patch (to /usr/bin/xdg-open): --- xdg-open.mimeopen 2008-01-18 08:39:40.000000000 -0600 +++ xdg-open 2008-01-18 08:38:10.000000000 -0600 @@ -364,8 +364,8 @@ mimeopen -n "$1" if [ $? -eq 0 ]; then exit_success - else - exit_failure_operation_failed +# else +# exit_failure_operation_failed fi fi
With the patch it works as expected. Thanks.
%changelog * Fri Jan 18 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.2-3 - fix mimeopen support (#429280)
This looks good. If no application is found or the application doesn't understand urls and exits (I tested with xpdf) the browser is used. We have plans (with the mimeopen maintainer) to add support for urls, by adding a Protocol entry in the desktop files to have applications register which url protocol they understand, and I submitted it to the xdg mailing list but so far there hasn't been many feedback.
Patrice, thx, fyi, I've pushed the mimeinfo patch/changes (as-is now anyway) upstream already.
Patrice, any links/references to the aforementioned submission(s) to the xdg list?
This is my proposal http://lists.freedesktop.org/archives/xdg/2007-November/009016.html And Jaap mail http://lists.freedesktop.org/archives/xdg/2007-November/009020.html
xdg-utils-1.0.2-3.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.
xdg-utils-1.0.2-3.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.