On 5/10/07, Tassilo Horn <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wonder what I have to edit to tell fish that it should open e.g. PDF
> files with kpdf instead of acroread, what it's doing right now?
>
> The docs only point out that it gets the mime type from mimedb, but the
> app should be defined by various desktop files, etc. So what to edit?

Good question.

A short breakdown:

* On OS X, there is some OS specific magic unrelated to fish. I don't
know what it is, but 'man open' might give you a few pointers.

* On very recent Linux distros,  open uses xdg-open, which is a
command defined by the portland project, which is a subproject of
freedesktop.org. I belive that only the interface is defined by fd.o,
and the implemenation is entirely left up to the OS vendor. My best
guess would be 'man xdg-open' or to check the source.

* On less modern Linux distros (ones that don't have the xdg-open
command), fish checks the mime database and various related files. The
mapping between mimetypes and .desktop files is done using the
'defaults.list' file, which may be located in /usr/share/applications.
Or somewhere else. You never know.

I wish I could give you a more authorative and useful answer, but
giving you one would involve lying, and my mother was very strict
about those kinds of things. Hopefully the above will give you a few
pointers on where to look.

If you start digging and find something you think might be useful,
feel free to send a patch for the fish documentation.

Good luck!

Axel

>
> Thanks in advance,
> Tassilo
> --
> If programmers deserve to  be rewarded for creating innovative programs,
> by the same  token they deserve to be punished if  they restrict the use
> of these programs. (Richard M. Stallman)

-- 
Axel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to