mirror of
https://github.com/gryf/wmaker.git
synced 2026-07-13 01:06:30 +02:00
Use wuserdatapath() everytime it is applicable
Replace calls to wusergnusteppath() which just append "/Library" by calls to wuserdatapath(). Take opportunity to replace hardcoded "/WindowMaker" directories with the existing PACKAGE_TARNAME macro (which comes from autotools). The choice of 'TARNAME' is because it meant to be used in filename, thus less likely to have problematic characters than PACKAGE_NAME (meant for display purpose) and PACKAGE which is there for historical reason.
This commit is contained in:
committed by
Carlos R. Mafra
parent
1e45ff2305
commit
bd38778bef
+2
-2
@@ -510,7 +510,7 @@ static void execInitScript(void)
|
||||
{
|
||||
char *file, *paths;
|
||||
|
||||
paths = wstrconcat(wusergnusteppath(), "/Library/WindowMaker");
|
||||
paths = wstrconcat(wuserdatapath(), "/" PACKAGE_TARNAME);
|
||||
paths = wstrappend(paths, ":" DEF_CONFIG_PATHS);
|
||||
|
||||
file = wfindfile(paths, DEF_INIT_SCRIPT);
|
||||
@@ -528,7 +528,7 @@ void ExecExitScript(void)
|
||||
{
|
||||
char *file, *paths;
|
||||
|
||||
paths = wstrconcat(wusergnusteppath(), "/Library/WindowMaker");
|
||||
paths = wstrconcat(wuserdatapath(), "/" PACKAGE_TARNAME);
|
||||
paths = wstrappend(paths, ":" DEF_CONFIG_PATHS);
|
||||
|
||||
file = wfindfile(paths, DEF_EXIT_SCRIPT);
|
||||
|
||||
Reference in New Issue
Block a user