Re: file associations/url protocol handler/shell execution on linux

From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 10/23/04


Date: Sat, 23 Oct 2004 19:09:21 +0200

In comp.os.linux.misc buildmorelines <bulk88@hotmail.com>:
> Is there a industry standard/typical/pretty much expected, in linux
> (well in linux you can remove everything) and less importantly unix,

> a file handler,

> or something of a central system of file associations where the user
> can select which program to use with a file/url/data/resource/whatever
> and all programs use it when they need to open other files,

[..]

> or something that has the functional equivelent of windows's
> HKEY_CLASSES_ROOT hive?

Gladly we miss this design flaw. There's no such thing despite
'file' and /usr/share/magic. One or another wm (KDE/Gnome/etc)
might have something like this, but nothing general available.

> I am trying to open a media file with the correct media player in the
> source of a program written in Perl, and I dont want to have to have
> the user define the player in the config of the program.

You could search from your prog for the proper player and warn
the user if it's not available giving him the option to provide
the path to it.

Good luck

-- 
Michael Heiming (X-PGP-Sig > GPG-Key ID: 0xEDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 423: It's not RFC-822 compliant.