unoapploader.c (bec0253d) | unoapploader.c (2e9bc605) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 192 unchanged lines hidden (view full) --- 201 free( libpath ); 202 } 203 if ( value != NULL ) 204 { 205 strcat( envstr, PATHSEPARATOR ); 206 strcat( envstr, value ); 207 } 208 putenv( envstr ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 192 unchanged lines hidden (view full) --- 201 free( libpath ); 202 } 203 if ( value != NULL ) 204 { 205 strcat( envstr, PATHSEPARATOR ); 206 strcat( envstr, value ); 207 } 208 putenv( envstr ); |
209 fprintf( stderr, "DYLD_LIBRARY_PATH=%s\n", envstr ); 210 | |
211 } 212 else 213 { 214 fprintf( stderr, "Warning: no office installation found!\n" ); 215 fflush( stderr ); 216 } 217 218 /* set the executable name for the application process */ --- 18 unchanged lines hidden (view full) --- 237 * found, or if an error occured 238 */ 239char const* getPath() 240{ 241 char const* path = cppuhelper_detail_findSofficePath(); 242 243 if ( path == NULL ) 244 { | 209 } 210 else 211 { 212 fprintf( stderr, "Warning: no office installation found!\n" ); 213 fflush( stderr ); 214 } 215 216 /* set the executable name for the application process */ --- 18 unchanged lines hidden (view full) --- 235 * found, or if an error occured 236 */ 237char const* getPath() 238{ 239 char const* path = cppuhelper_detail_findSofficePath(); 240 241 if ( path == NULL ) 242 { |
245 fprintf( stderr, "Warning: getting path from PATH environment " 246 "variable failed!\n" ); | 243 fprintf( stderr, "Warning: getting path from PATH environment variable failed!\n" ); |
247 fflush( stderr ); 248 } 249 250 return path; 251} 252 253/* 254 * Creates the application's executable file name. --- 55 unchanged lines hidden --- | 244 fflush( stderr ); 245 } 246 247 return path; 248} 249 250/* 251 * Creates the application's executable file name. --- 55 unchanged lines hidden --- |