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

Re: Some issues with oo.o 1.0.0-3



* Gerfried Fuchs <alfie@ist.org> [2002-05-14 11:37]:
>  That should be all the magic needed.  I now grepped through the source
> and found that in
> build-tree/oo_1.0_src/setup2/source/custom/regmimetypes/regmimetypes.cxx
> line 93 .mailcap defines FILE_NAME_MAILCAP.  Need to investigate
> further to find if the function that changes that FILE_NAME_MAILCAP can
> easily be disabled.  Stay doomed.

 Yes, I should have done that before sending the letter and not writing
just some few minutes later and followingup to myself.  Sorry.

 The attached patch might solve that "problem" and stop touching
~/.mailcap for the user.  I found that it also edits ~/.mime.types by
browsing that file, I have disabled that, too.  Though I haven't found
that special entries in /etc/mime.types -- you should mail
mime-support@packages.debian.org with that entries to have them added
according to the comment in that file.

 I hope you appreciate the patch, I did nothing more than just
commenting out the according lines.  Time is too short to say it has
been tested (not even built yet ,) but it should work for it's quite
straight forward.

 Have fun.
Alfie
-- 
() | Ich bin anders, nur soviel anders wie der Himmel, wie das Meer am Horizont.
/\ | Oder anders, vielleicht anders - was heisst schon anders?
   |                                   -- Alfons Haider, 2001
--- regmimetypes.cxx.orig       Wed Dec  5 15:35:18 2001
+++ regmimetypes.cxx    Tue May 14 12:05:20 2002
@@ -89,8 +89,8 @@
 // constants
 //--------------------------------------------

-const OUString FILE_NAME_MIME_TYPES    = OUString::createFromAscii( ".mime.types" );
-const OUString FILE_NAME_MAILCAP       = OUString::createFromAscii( ".mailcap" );
+// const OUString FILE_NAME_MIME_TYPES    = OUString::createFromAscii( ".mime.types" );
+// const OUString FILE_NAME_MAILCAP       = OUString::createFromAscii( ".mailcap" );
 const OString  SOFFICE_EXECUTABLE_NAME = "soffice";

 const sal_Char SLASH                   = '/';
@@ -336,8 +336,8 @@
             makeAbsPath( pEnv->GetDestPath( ), SOFFICE_EXECUTABLE_NAME ),
             aMailcapList );

-        fileAddEntries( FILE_NAME_MIME_TYPES, aMimeTypeList );
-        fileAddEntries( FILE_NAME_MAILCAP, aMailcapList );
+        // fileAddEntries( FILE_NAME_MIME_TYPES, aMimeTypeList );
+        // fileAddEntries( FILE_NAME_MAILCAP, aMailcapList );
     }
     else if ( IsSetupModification( pEnv ) )
     {
@@ -353,8 +353,8 @@
             makeAbsPath( pEnv->GetDestPath( ), SOFFICE_EXECUTABLE_NAME ),
             aMailcapList );

-        fileAddEntries( FILE_NAME_MIME_TYPES, aMimeTypeList );
-        fileAddEntries( FILE_NAME_MAILCAP, aMailcapList );
+        // fileAddEntries( FILE_NAME_MIME_TYPES, aMimeTypeList );
+        // fileAddEntries( FILE_NAME_MAILCAP, aMailcapList );

         // handle possible deinstallation

@@ -371,8 +371,8 @@
             makeAbsPath( pEnv->GetDestPath( ), SOFFICE_EXECUTABLE_NAME ),
             aMailcapList );

-        fileRemoveEntries( FILE_NAME_MIME_TYPES, aMimeTypeList );
-        fileRemoveEntries( FILE_NAME_MAILCAP, aMailcapList ); 
+        // fileRemoveEntries( FILE_NAME_MIME_TYPES, aMimeTypeList );
+        // fileRemoveEntries( FILE_NAME_MAILCAP, aMailcapList ); 
     }
     else if ( IsDeinstallation( pEnv ) )
     {
@@ -389,8 +389,8 @@
             makeAbsPath( pEnv->GetDestPath( ), SOFFICE_EXECUTABLE_NAME ),
             aMailcapList );

-        fileRemoveEntries( FILE_NAME_MIME_TYPES, aMimeTypeList );
-        fileRemoveEntries( FILE_NAME_MAILCAP, aMailcapList );
+        // fileRemoveEntries( FILE_NAME_MIME_TYPES, aMimeTypeList );
+        // fileRemoveEntries( FILE_NAME_MAILCAP, aMailcapList );
     }

     return TRUE;

Attachment: pgpo5qPNz_VTk.pgp
Description: PGP signature


Reply to: