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

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



Bill Allombert writes:

>> > Also that does not address why KDE need its own mime-magic
>> > system.  Why not using the /etc/mime-magic file ?
>>
>> Because the existing system was not sufficient.  KDE apps ( like
>> e.g. kolf ) need to be able to install a file which contains some
>> more data for the magic system.  It would not be a good idea (
>> imho, hope you agree with me on this ) to let them each edit the
>> /etc/magic file.  The KDE system allows this by letting them put a
>> *.magic file in $kde_prefix/config/magic/ or /etc/kde3/magic/ or
>> ~/.kde/config/magic/.
>>
>> I do disagree with your point about KDE not needing its own
>> mime-magic system.  It would of course be better if it would use a
>> general mime-magic system, but I'm currently not aware of any such
>> things or whatever, that provide the functionality described above.

> KDE need a mime-magic system. But it don't need to be private to
> KDE.  I mean, it make sense to configure KDE and GNOME to use
> different programs for the same mime-type but not to see the same
> file with two different mime-type.

> It would make a lot of sense to add mime-magic support to
> mime-support.

Hi, people have been talking about this on xdg-list ( the mailing list
where the FreeDesktop.org effort occurs ).

Here is the proposed specification ( not yet released, AFAICT ):
http://www.freedesktop.org/standards/shared-mime-info-spec/

>> > 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 ?
>>
>> I'm not sure about this issue ( I can see how it's not a
>> user-editable config file, and thus it might not belong in /etc (
>> what are the criteria exactly ? As I see it, there are lots of
>> things in /etc that don't really belong there ), but I'm not sure
>> how technically possible it is to put it elsewhere ).

> If you support both $kde_prefix/config/magic/ and /etc/kde3/magic/,
> I don't see why kolf magic cannot go in $kde_prefix/config/magic.

The problem is that I'm not sure $kde_prefix/config/magic is
supported.  I'm inclined to think it isn't, as the kde packages are
configured with kde_confdir=/etc/kde3, which I think overrides the
other dir, but I'll recheck this.

> In fact I am not sure why /etc/kde3/magic/ need to be a directory if
> $kde_prefix/config/magic/ for application plug-in.

Agreed, so you would suggest to parse $kde_prefix/config/magic/*.magic
and /etc/magic only ?  Again, I'm not sure how easy this is to
implement, but I'll try to look into it.

cheers
domi



Reply to: