finddir: reintroduce the B_COMMON directories

* Not having them here breaks the "ABI" for scripts and YAB-based apps.
 * They will point to the system non-packaged directory, where you are
likely to have old non-packaged BeOS stuff living now.
 * This is limited to the constants that were already defined on BeOS.
None of the new ones was re-added.
This commit is contained in:
Adrien Destugues 2013-10-19 18:00:33 +02:00
parent 3940abc9b8
commit 79ce2c2d1b

View File

@ -130,6 +130,26 @@ directoryType directoryTypes[] = {
KEYVALUE_PAIR(B_BEOS_SOUNDS_DIRECTORY), KEYVALUE_PAIR(B_BEOS_SOUNDS_DIRECTORY),
KEYVALUE_PAIR(B_BEOS_DATA_DIRECTORY), KEYVALUE_PAIR(B_BEOS_DATA_DIRECTORY),
// Legacy "common" directories, for BeOS compatibility only.
{"B_COMMON_DIRECTORY", B_SYSTEM_NONPACKAGED_DIRECTORY},
{"B_COMMON_SYSTEM_DIRECTORY", B_SYSTEM_NONPACKAGED_DIRECTORY},
{"B_COMMON_ADDONS_DIRECTORY", B_SYSTEM_NONPACKAGED_ADDONS_DIRECTORY},
{"B_COMMON_BIN_DIRECTORY", B_SYSTEM_NONPACKAGED_BIN_DIRECTORY},
{"B_COMMON_DEVELOP_DIRECTORY", B_SYSTEM_NONPACKAGED_DEVELOP_DIRECTORY},
{"B_COMMON_DOCUMENTATION_DIRECTORY",
B_SYSTEM_NONPACKAGED_DOCUMENTATION_DIRECTORY},
{"B_COMMON_FONTS_DIRECTORY",B_SYSTEM_NONPACKAGED_FONTS_DIRECTORY},
{"B_COMMON_LIB_DIRECTORY", B_SYSTEM_NONPACKAGED_LIB_DIRECTORY},
{"B_COMMON_BOOT_DIRECTORY", B_SYSTEM_BOOT_DIRECTORY},
{"B_COMMON_ETC_DIRECTORY", B_SYSTEM_ETC_DIRECTORY},
{"B_COMMON_LOG_DIRECTORY", B_SYSTEM_LOG_DIRECTORY},
{"B_COMMON_SERVERS_DIRECTORY", B_SYSTEM_SERVERS_DIRECTORY},
{"B_COMMON_SETTINGS_DIRECTORY", B_SYSTEM_SETTINGS_DIRECTORY},
{"B_COMMON_SPOOL_DIRECTORY", B_SYSTEM_SPOOL_DIRECTORY},
{"B_COMMON_TEMP_DIRECTORY", B_SYSTEM_TEMP_DIRECTORY},
{"B_COMMON_VAR_DIRECTORY", B_SYSTEM_VAR_DIRECTORY},
{NULL, B_USER_DESKBAR_DIRECTORY} {NULL, B_USER_DESKBAR_DIRECTORY}
}; };