mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 23:22:30 +01:00
Configure: Rename setting DEFSDATADIR to PKGCONFDIR
Directory /etc/WindowMaker is for global defaults configuration, it is not a "data" folder which is $PREFIX/share/WindowMaker. The name change make it more consistent with other names.
This commit is contained in:
committed by
Carlos R. Mafra
parent
85169642ca
commit
24f5b32469
@@ -866,7 +866,7 @@ static WMPropList *readGlobalDomain(const char *domainName, Bool requireDictiona
|
||||
char path[PATH_MAX];
|
||||
struct stat stbuf;
|
||||
|
||||
snprintf(path, sizeof(path), "%s/%s", DEFSDATADIR, domainName);
|
||||
snprintf(path, sizeof(path), "%s/%s", PKGCONFDIR, domainName);
|
||||
if (stat(path, &stbuf) >= 0) {
|
||||
globalDict = WMReadPropListFromFile(path);
|
||||
if (globalDict && requireDictionary && !WMIsPLDictionary(globalDict)) {
|
||||
@@ -916,7 +916,7 @@ void wDefaultsMergeGlobalMenus(WDDomain * menuDomain)
|
||||
return;
|
||||
|
||||
#ifdef GLOBAL_PREAMBLE_MENU_FILE
|
||||
submenu = WMReadPropListFromFile(DEFSDATADIR "/" GLOBAL_PREAMBLE_MENU_FILE);
|
||||
submenu = WMReadPropListFromFile(PKGCONFDIR "/" GLOBAL_PREAMBLE_MENU_FILE);
|
||||
|
||||
if (submenu && !WMIsPLArray(submenu)) {
|
||||
wwarning(_("invalid global menu file %s"), GLOBAL_PREAMBLE_MENU_FILE);
|
||||
@@ -930,7 +930,7 @@ void wDefaultsMergeGlobalMenus(WDDomain * menuDomain)
|
||||
#endif
|
||||
|
||||
#ifdef GLOBAL_EPILOGUE_MENU_FILE
|
||||
submenu = WMReadPropListFromFile(DEFSDATADIR "/" GLOBAL_EPILOGUE_MENU_FILE);
|
||||
submenu = WMReadPropListFromFile(PKGCONFDIR "/" GLOBAL_EPILOGUE_MENU_FILE);
|
||||
|
||||
if (submenu && !WMIsPLArray(submenu)) {
|
||||
wwarning(_("invalid global menu file %s"), GLOBAL_EPILOGUE_MENU_FILE);
|
||||
|
||||
@@ -658,7 +658,7 @@ static int real_main(int argc, char **argv)
|
||||
printf("Window Maker %s\n", VERSION);
|
||||
exit(0);
|
||||
} else if (strcmp(argv[i], "--global_defaults_path") == 0) {
|
||||
printf("%s\n", DEFSDATADIR);
|
||||
printf("%s\n", PKGCONFDIR);
|
||||
exit(0);
|
||||
} else if (strcmp(argv[i], "-locale") == 0 || strcmp(argv[i], "--locale") == 0) {
|
||||
i++;
|
||||
|
||||
@@ -1017,7 +1017,7 @@ Bool UpdateDomainFile(WDDomain * domain)
|
||||
dict = domain->dictionary;
|
||||
if (WMIsPLDictionary(domain->dictionary)) {
|
||||
/* retrieve global system dictionary */
|
||||
snprintf(path, sizeof(path), "%s/%s", DEFSDATADIR, domain->domain_name);
|
||||
snprintf(path, sizeof(path), "%s/%s", PKGCONFDIR, domain->domain_name);
|
||||
if (stat(path, &stbuf) >= 0) {
|
||||
shared_dict = WMReadPropListFromFile(path);
|
||||
if (shared_dict) {
|
||||
|
||||
Reference in New Issue
Block a user