Bug 429280 - xdg-open doesn't open URLs
Summary: xdg-open doesn't open URLs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xdg-utils
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-18 14:31 UTC by Miroslav Lichvar
Modified: 2008-01-22 15:54 UTC (History)
1 user (show)

Fixed In Version: 1.0.2-3.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-22 15:54:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miroslav Lichvar 2008-01-18 14:31:48 UTC
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:

Comment 1 Rex Dieter 2008-01-18 14:40:49 UTC
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



Comment 2 Miroslav Lichvar 2008-01-18 14:50:19 UTC
With the patch it works as expected. Thanks.

Comment 3 Rex Dieter 2008-01-18 14:53:08 UTC
%changelog
* Fri Jan 18 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.2-3
- fix mimeopen support (#429280)

Comment 4 Patrice Dumas 2008-01-18 15:04:34 UTC
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.

Comment 5 Rex Dieter 2008-01-18 15:15:36 UTC
Patrice, thx, fyi, I've pushed the mimeinfo patch/changes (as-is now anyway)
upstream already.

Comment 6 Rex Dieter 2008-01-18 16:10:51 UTC
Patrice, any links/references to the aforementioned submission(s) to the xdg list?

Comment 8 Fedora Update System 2008-01-22 15:52:44 UTC
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.

Comment 9 Fedora Update System 2008-01-22 15:54:14 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.