Bug 210797 - xdg-utils: mimeopen should be a better generic default
Summary: xdg-utils: mimeopen should be a better generic default
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: xdg-utils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-15 09:28 UTC by Patrice Dumas
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-10-24 12:27:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch for xdg-open to use mimeopen (485 bytes, patch)
2006-10-17 21:01 UTC, Patrice Dumas
no flags Details | Diff

Description Patrice Dumas 2006-10-15 09:28:30 UTC
Description of problem:

xdg-open uses BROWSER for the generic default, it is not a very relevant
choice in my opinion. I have just packaged perl-File-MimeInfo in 
fedora with the mimeopen script which launches apps according to 
the freedesktop specification, and I think it would be 
interesting to try to launch an application through mimeopen before 
using the BROWSER.

I have added an option to mimeopen (-n), accepted by upstream, but
not released, to launch mimeopen non interactively (otherwise first
time it is started it asks for the preferred application for the mime
type if there are several). This option is especially suited for 
what I propose here.

I can try to do a patch if you accept the suggestion.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Rex Dieter 2006-10-15 12:41:30 UTC
I thought xdg-open uses freedesktop.org default too. (??)  Heck, xdg-utils comes
from *freedesktop.org*.

Comment 2 Patrice Dumas 2006-10-15 13:24:54 UTC
xdg-open doesn't do anything by itself. It is a simple shell
script which calls, depending on  the environment found, 
kfmclient on kde, exo-open on xfce, coresponding gnome command
on gnome - all of which implement more or less the freedesktop
specs.

When no specific environment is found it calls what is in BROWSER
or firefox/netscape/?.

Comment 3 Rex Dieter 2006-10-15 15:55:50 UTC
OK, I get it now, using mimeopen as generic fallback sounds reasonable.

Comment 4 Patrice Dumas 2006-10-15 15:58:07 UTC
Do you want that I do a patch against xdg-open?

Comment 5 Rex Dieter 2006-10-15 20:47:55 UTC
Patches are *always* welcome. (:

Comment 6 Patrice Dumas 2006-10-17 21:01:59 UTC
Created attachment 138729 [details]
patch for xdg-open to use mimeopen

Comment 7 Rex Dieter 2006-10-23 13:42:20 UTC
To be clear, does Extras' build of mimeopen support the -n (non-interactive)
option mentioned in comment #0 ?  If so, I'll go ahead an apply/use the patch.

Comment 8 Patrice Dumas 2006-10-24 09:06:12 UTC
Yes, it does. 

I added it to be able to use mimeopen non interactively in scripts,
it is applied in the fedora version (mimeopen is in perl-File-MimeInfo,
and I am the maintainer).
The upstream accepted the patch but he doesn't want to do a release 
soon.

Comment 9 Rex Dieter 2006-10-24 12:27:25 UTC
Thanks, patch will find it's way into next build:

%changelog
* Tue Oct 24 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.0-2
- prefer mimeopen as generic default (#210797)


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