mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Fixed paths, because mr Alex "Big Mouth" Perez was unable to get them right
in the first place in his trivial 10 line patch which only attempted to replace one path with another. He must be a big time user of his own patch, to not have noticed where the paths pointed after his change.
This commit is contained in:
@@ -1726,7 +1726,7 @@ createPanel(Panel *p)
|
|||||||
char *tmp;
|
char *tmp;
|
||||||
Bool ok = True;
|
Bool ok = True;
|
||||||
|
|
||||||
panel->fprefix = wstrconcat(wusergnusteppath(), "/Library/WindowMaker/WPrefs");
|
panel->fprefix = wstrconcat(wusergnusteppath(), "/Library/WindowMaker");
|
||||||
|
|
||||||
if (access(panel->fprefix, F_OK)!=0) {
|
if (access(panel->fprefix, F_OK)!=0) {
|
||||||
if (mkdir(panel->fprefix, 0755) < 0) {
|
if (mkdir(panel->fprefix, 0755) < 0) {
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ getnameforicon(WWindow *wwin)
|
|||||||
prefix = wusergnusteppath();
|
prefix = wusergnusteppath();
|
||||||
len = strlen(prefix)+64+strlen(suffix);
|
len = strlen(prefix)+64+strlen(suffix);
|
||||||
path = wmalloc(len+1);
|
path = wmalloc(len+1);
|
||||||
snprintf(path, len, "%s/Library/WindowMaker/CachedPixmaps", prefix);
|
snprintf(path, len, "%s/Library/WindowMaker", prefix);
|
||||||
|
|
||||||
if (access(path, F_OK)!=0) {
|
if (access(path, F_OK)!=0) {
|
||||||
if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR)) {
|
if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR)) {
|
||||||
@@ -506,7 +506,7 @@ getnameforicon(WWindow *wwin)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
strcat(path, "/WindowMaker");
|
strcat(path, "/CachedPixmaps");
|
||||||
if (access(path, F_OK)!=0) {
|
if (access(path, F_OK)!=0) {
|
||||||
if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR)!=0) {
|
if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR)!=0) {
|
||||||
wsyserror(_("could not create directory %s"), path);
|
wsyserror(_("could not create directory %s"), path);
|
||||||
|
|||||||
Reference in New Issue
Block a user