Hi, Le jeudi 01 avril 2004 à 12:48:24 +0200, Chris Halls écrivait: > It just occured to me how we can prevent this, by doing the same thing > as we do for the icon installation. Can you test it out? > > In /usr/lib/openoffice/program/instd.ins there are these lines: > > Custom gid_Custom_Regmimetypes^ > FileName = "libregmimetypes645li.so";^ > Styles = (STANDALONE, WORKSTATION, EXEC_INST_BEFORE, > EXEC_DEINST_BEFORE, EXEC_MODIFY_BEFORE, REPAIRABLE);^ > > Try removing the 'WORKSTATION' attribute, i.e.: > > Styles = (STANDALONE, EXEC_INST_BEFORE, > EXEC_DEINST_BEFORE, EXEC_MODIFY_BEFORE, REPAIRABLE);^ > > Does that work without creating those entries now?
Your fix works great! Congratulations. ( Except that the good filename is instdb.ins, so be careful if you want to copy+paste from above. ) Because there are probably many broken and irrelevant mailcap entries on users machines, it would be good to warn the user. It is possible to create a script to automatically remove the bad ~/.mailcap entries, (either system-wide when upgrading the package or when the wrapper script is run by users). However I'm afraid somebody will complain because it might be tricky to get it right. So my advice is to add a few words in NEWS.Debian.gz and maybe in changelog.Debian.gz. For example: "Previous versions of the openoffice.org-bin package created less than optimal entries in the users ~/.mailcap file during setup. These entries conflict with the one provided by the openoffice.org-debian-files package. If you don't have another version of openoffice.org installed, you can safely remove the lines about openoffice in each user ~/.mailcap file." Of course, this is just a quick draft and you are more than welcome to improve/ignore it. Thanks for your time. Regards, Lucien.