On Thu, Jul 09, 2009 at 08:21:37AM +0200, Frank Lin PIAT wrote: > On Wed, 2009-07-08 at 17:59 -0700, Steve Langasek wrote: > > On Wed, Jul 08, 2009 at 09:07:54PM +0200, Jan Hauke Rahm wrote: > > > Basically > > > > > egrep '^image/(png|x-portable-pixmap)\s*;\s*((\S*).*?)\s*($|;.*)' > > > /etc/mailcap > > > > > > A virtual package only makes sense if it will also provide a standard > > > > interface that other packages will invoke. > > > > > It doesn't have such, it just chooses one out the list provided by the > > > command above (it's actually perl but anyways). > > > > Well, a mailcap entry would qualify as such a standard interface - though > > you ought to be using 'see' (or 'run-mailcap') instead of parsing the file > > directly, indeed. > > Freedesktop has a similar tool (less portable than mailcap, but it's > database probably more accurate... for instance my mailcap isn't aware > of image/x-xcf files). > > $apropos xdg-open > > xdg-open (1) - opens a file or URL in the user's preferred application
That's a fair suggestion. I've changed xcfview to use xdg-utils and I'm now discussing this with upstream. It's not perfect but I guess it's a usable workaround. Thanks, Hauke
signature.asc
Description: Digital signature