Lines Matching full:path
36 * Gets the installation path from the Windows Registry for the specified
42 * @return the installation path or NULL, if no installation was found or
82 * Gets the installation path from the Windows Registry.
84 * @return the installation path or NULL, if no installation was found or
92 char* path = NULL; in platformSpecific() local
95 path = getPathFromRegistryKey( HKEY_CURRENT_USER, SUBKEYNAME ); in platformSpecific()
97 if ( path == NULL ) in platformSpecific()
100 path = getPathFromRegistryKey( HKEY_CURRENT_USER, SUBKEYNAME64 ); in platformSpecific()
102 if ( path == NULL ) in platformSpecific()
105 path = getPathFromRegistryKey( HKEY_LOCAL_MACHINE, SUBKEYNAME ); in platformSpecific()
107 if ( path == NULL ) in platformSpecific()
110 path = getPathFromRegistryKey( HKEY_LOCAL_MACHINE, SUBKEYNAME64 ); in platformSpecific()
113 return path; in platformSpecific()
122 * Gets the installation path from the PATH environment variable.
125 * is in one of the directories listed in the PATH environment variable.</p>
127 * @return the installation path or NULL, if no installation was found or
132 char* path = NULL; in platformSpecific() local
143 path = (char*) malloc( strlen(MACDEFAULTOFFICEPATH) + 1 ); in platformSpecific()
144 strcpy( path, MACDEFAULTOFFICEPATH); in platformSpecific()
146 return path; in platformSpecific()
150 const char* PATHVARNAME = "PATH"; in platformSpecific()
163 /* get the value of the PATH environment variable */ in platformSpecific()
173 /* construct soffice file path */ in platformSpecific()
186 /* get path to program directory */ in platformSpecific()
192 path = (char*) malloc( pos + 1 ); in platformSpecific()
193 strncpy( path, resolved, pos ); in platformSpecific()
194 path[ pos ] = '\0'; in platformSpecific()
207 return path; in platformSpecific()
217 char* path = NULL; in cppuhelper_detail_findSofficePath() local
219 /* get the installation path from the UNO_PATH environment variable */ in cppuhelper_detail_findSofficePath()
220 path = getenv( UNOPATHVARNAME ); in cppuhelper_detail_findSofficePath()
222 if ( path == NULL || strlen( path ) == 0 ) in cppuhelper_detail_findSofficePath()
224 path = platformSpecific(); in cppuhelper_detail_findSofficePath()
227 return path; in cppuhelper_detail_findSofficePath()