[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New virtual package x-image-viewer?



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


$aptitude show  xdg-utils | awk /^Descr/,/^$/
> Description: desktop integration utilities from freedesktop.org
>  xdg-utils contains utilities for integrating applications with the
>  desktop environment, regardless of which desktop environment is used.
>  They are part of freedesktop.org's Portland project.
>  .
>  The following utilities are included:
>  .
>   * xdg-desktop-menu - Install desktop menu items
>   * xdg-desktop-icon - Install icons on the user's desktop
>   * xdg-icon-resource - Install icon resources
>   * xdg-mime - Gather MIME information about a file
>   * xdg-open - Open a URL in the user's preferred application that
>                handles the respective URL or file type
>   * xdg-email - Open the user's preferred email client, potentially with
>                 subject and other info filled in
>   * xdg-screensaver - Enable, disable, or suspend the screensaver



Reply to: