On Fri, Dec 05, 2003 at 12:39:43AM +0100, Dominique Devriese wrote: > >> 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. > > How would you suggest this should be documented.
It is Debian specific ? if not it should go in the KDE documentation in the 'How I add a new mime-type section'. You can also add a file /etc/kde3/magic/README that explain the format, etc... and drop a note in README.Debian. > > 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. > > 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. In fact I am not sure why /etc/kde3/magic/ need to be a directory if $kde_prefix/config/magic/ for application plug-in. Cheers, Bill.