Changeset 44563 in vbox
- Timestamp:
- Feb 6, 2013 1:15:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/com.cpp
r44552 r44563 55 55 #include <VBox/version.h> 56 56 57 const char *apcszUserHome[] = 57 #if !defined(RT_OS_DARWIN) && !defined(RT_OS_WINDOWS) 58 char szXdgConfigHome[RTPATH_MAX] = ""; 59 #endif 60 61 /** 62 * Possible locations for the VirtualBox user configuration folder, 63 * listed from oldest (as in legacy) to newest. These can be either 64 * absolute or relative to the home directory. We use the first entry 65 * of the list which corresponds to a real folder on storage, or 66 * create a folder corresponding to the last in the list (the least 67 * legacy) if none do. 68 */ 69 const char *const apcszUserHome[] = 58 70 #ifdef RT_OS_DARWIN 59 71 { "Library/VirtualBox" }; … … 61 73 { ".VirtualBox" }; 62 74 #else 63 { ".config/VirtualBox", ".VirtualBox" }; 64 char szXdgConfigHome[RTPATH_MAX]; 75 { ".VirtualBox", szXdgConfigHome }; 65 76 #endif 66 77 … … 235 246 sizeof(szXdgConfigHome), 236 247 "VirtualBox"); 237 apcszUserHome[0] = szXdgConfigHome;238 248 } 249 else 250 vrc = RTStrCopy(szXdgConfigHome, 251 sizeof(szXdgConfigHome), 252 ".config/VirtualBox"); 239 253 #endif 240 254 for (unsigned i = 0; i < RT_ELEMENTS(apcszUserHome); ++i) … … 247 261 } 248 262 } 249 if (!fFound)250 vrc = composeHomePath(aDir, aDirLen, apcszUserHome[0]);251 263 } 252 264
Note:
See TracChangeset
for help on using the changeset viewer.