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

Bug#215946: /etc/kde3/magic/*.magic



On Wed, Dec 03, 2003 at 05:59:01PM +0100, Bill Allombert wrote:
> On Tue, Dec 02, 2003 at 11:29:20AM +0100, Dominique Devriese wrote:
> > If I understand the KMimeMagic code properly, then what you are trying
> > to accomplish is possible by putting an extra *.magic file in the
> > /etc/kde3/magic directory.  It should be used automagically by the KDE
> > MIME system.  If you need an example, install the kolf package, it
> > contains such a file iirc.
> 
> Thanks for your study.
> 
> > Please let us know if this fixes your problem, and if this bug can be
> > closed. 
> 
> Until this is properly documented, the bug should not be closed.
> 
> Also that does not address why KDE need its own mime-magic system.
> Why not using the /etc/mime-magic file ?

What /etc/mime-magic file, you mean the one that gnome provides?[1] Why
doesn't gnome use the KDE one? :P All I see that is standard is a
/etc/magic file which does not include anything that was directly built
into the file(1) utility, which happens to mean /etc/magic is empty.

> Does the kolf magic file required to be a config files ? If not, why
> not drop it under a directory that is not in /etc ?

The way KDE is designed all its upstream config related files go into
$prefix/share/config, this had to be worked around by Debian to put it
into /etc/kde3. As I understand it none of the files in
$prefix/share/config were not meant to be directly edited by the admin
but Debian requires any config related file be editable. However, KDE
upstream does many very stupid things so I wouldn't be surprised if they
intended $prefix/share/config to be editable as well, even though they
put it in an obviously wrong location.


Chris


[1] /etc/mime-magic is not stanard either afaict its parts of gnome, it
    would be just as legitimate to move this bug to gnome-libs-data,
    perhaps you filed a bug on gnome-libs-data already as well? :P
    perhaps file(1) should provide the original magic file as well so
    that other apps can use it directly too, currently it appears to
    build it into the app itself and does not install it anywhere.

	etc/mime-magic		gnome/gnome-libs-data



Reply to: