You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2019/01/31 17:36:54 UTC

svn commit: r1852624 - /openoffice/trunk/main/odk/source/unoapploader/unx/unoapploader.c

Author: jim
Date: Thu Jan 31 17:36:53 2019
New Revision: 1852624

URL: http://svn.apache.org/viewvc?rev=1852624&view=rev
Log:
Additional env setup for https://bz.apache.org/ooo/show_bug.cgi?id=127966 fix

Modified:
    openoffice/trunk/main/odk/source/unoapploader/unx/unoapploader.c

Modified: openoffice/trunk/main/odk/source/unoapploader/unx/unoapploader.c
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/odk/source/unoapploader/unx/unoapploader.c?rev=1852624&r1=1852623&r2=1852624&view=diff
==============================================================================
--- openoffice/trunk/main/odk/source/unoapploader/unx/unoapploader.c (original)
+++ openoffice/trunk/main/odk/source/unoapploader/unx/unoapploader.c Thu Jan 31 17:36:53 2019
@@ -220,6 +220,14 @@ int main( int argc, char *argv[] )
         }
         strcat( envstr, "/usr/local/bin" ); /* We are adding at the end */
         putenv( envstr );
+
+        /* https://bz.apache.org/ooo/show_bug.cgi?id=127966 */
+        value = getenv ( "HOME" );
+        if ( value && *value ) {
+          chdir ( value );
+        } else {
+            chdir ( "/tmp" );
+        }
 #endif
     }
     else