mime type error

Ralf Habacker ralf.habacker at freenet.de
Thu Dec 6 08:28:31 CET 2007


Saro Engels schrieb:
> There is a problem concerning the mime-types on our recent windows 
> builds and just today I got the full problem and a solution.
> If your recent kdelibs don't provide the right mime-type-database for 
> files it is because there was a change:
>
>
> update-mime-database isn't run when installing with make DESTDIR=...
>
>
> The goal in doing that is that update-mime-database should be run when 
> installing on the system, so basically not when installing to the 
> package (this is a way for distributions to circumvent updating while 
> packaging).
> So if you the have problems depending on mime-types, try to open 
> kdeenv.bat from your emerge folder, enter 'update-mime-database 
> %KDEROOT%/share/mime' every time you reinstall kdelibs.
>
> Concerning the *real* problem:
> We have two possibilities now:
> * Either we try to convince the usual suspects to change it for windows 
> only and break the freedesktop specs, or
> * we append something like 'post-install.bat' (we can call it 
> 'post-install.cmd' as well;-)) which should be called by the installer 
> application, and which gives us the possibility to make some other 
> post-install settings as well.
>
> personally I would vote for the second option.
>   
Me too. The only question is how to implement this feature.

cygwin's postinstall support uses sh scripts which are installed into 
/etc/postinstall. After installation all *.sh scripts are executed by 
the installer and then renamed to <scriptname>.done to avoid multiple 
calls.

It would be simple to let the installer rename the script after 
execution but then special file handling is required if such a package 
should be updated or removed. Or the installer have to manipulate the 
related .mft to reflect the name change. This makes it hard for manual 
installers.  Does anyone have a better idea how to solve this problem ?

Ralf






More information about the Kde-windows mailing list