mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
WMaker: Use wdefaultspathfordomain() to get path for Defaults directory
Instead of constructing path to user's defaults directory with hard-coded names, just query wdefaultspathfordomain with a blank domain: this returns the equivalent of "~/GNUstep/Defaults/", yet avoiding problems related to duplicating strings.
This commit is contained in:
committed by
Carlos R. Mafra
parent
bfab769065
commit
735651df55
@@ -488,7 +488,7 @@ static void inotifyWatchConfig(void)
|
||||
" Changes to the defaults database will require"
|
||||
" a restart to take effect. Check your kernel!"));
|
||||
} else {
|
||||
watchPath = wstrconcat(wusergnusteppath(), "/Defaults");
|
||||
watchPath = wdefaultspathfordomain("");
|
||||
/* Add the watch; really we are only looking for modify events
|
||||
* but we might want more in the future so check all events for now.
|
||||
* The individual events are checked for in event.c.
|
||||
|
||||
Reference in New Issue
Block a user