Bug 429280

Summary: xdg-open doesn't open URLs
Product: [Fedora] Fedora Reporter: Miroslav Lichvar <mlichvar>
Component: xdg-utilsAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: pertusus
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.0.2-3.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-22 15:54:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.