1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-26 08:22:37 +01:00

applied patch to rename .AppInfo directory

This commit is contained in:
kojima
2005-03-11 01:58:55 +00:00
parent 3301b57d4b
commit 25c37b7637
7 changed files with 25 additions and 9 deletions

View File

@@ -4,8 +4,11 @@ BUILT_SOURCES = wconfig.h
bin_PROGRAMS = wmaker
noinst_PROGRAMS = wsmap
EXTRA_DIST =
wsmap_SOURCES= wsmap.c
wmaker_SOURCES = \
GNUstep.h \
@@ -121,3 +124,11 @@ wmaker_LDADD = \
@INTLIBS@ \
@DLLIBS@
wsmap_LDADD = \
$(top_builddir)/WINGs/libWINGs.a\
$(top_builddir)/wrlib/libwraster.la\
@XFTLIBS@ \
@XLIBS@ \
@INTLIBS@ \
@DLLIBS@

View File

@@ -400,7 +400,7 @@ wApplicationCreate(WWindow *wwin)
/* If the icon was saved by us from the client supplied icon, but is
* missing, recreate it. */
if (tmp && strstr(tmp, ".AppInfo/WindowMaker")!=NULL &&
if (tmp && strstr(tmp, "Library/WindowMaker/CachedPixmaps")!=NULL &&
stat(tmp, &dummy)!=0 && errno==ENOENT) {
wmessage(_("recreating missing icon '%s'"), tmp);
path = wIconStore(wapp->app_icon->icon);

View File

@@ -496,7 +496,7 @@ getnameforicon(WWindow *wwin)
prefix = wusergnusteppath();
len = strlen(prefix)+64+strlen(suffix);
path = wmalloc(len+1);
snprintf(path, len, "%s/.AppInfo", prefix);
snprintf(path, len, "%s/Library/WindowMaker/CachedPixmaps", prefix);
if (access(path, F_OK)!=0) {
if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR)) {
@@ -527,7 +527,7 @@ getnameforicon(WWindow *wwin)
/*
* wIconStore--
* Stores the client supplied icon at ~/GNUstep/.AppInfo/WindowMaker
* Stores the client supplied icon at ~/GNUstep/Library/WindowMaker/CachedPixmaps
* and returns the path for that icon. Returns NULL if there is no
* client supplied icon or on failure.
*

View File

@@ -699,7 +699,7 @@ wSessionSendSaveYourself(WScreen *scr)
* might want to keep the dock configuration while not wanting to
* resume a previously saved session.
* So, wmaker specific state info can be saved in
* ~/GNUstep/.AppInfo/WindowMaker/statename.state
* ~/GNUstep/Library/WindowMaker/statename.state
* Its better to not put it in the defaults directory because:
* - its not a defaults file (having domain names like wmaker0089504baa
* in the defaults directory wouldn't be very neat)
@@ -1023,7 +1023,7 @@ smSaveYourselfPhase2Proc(SmcConn smc_conn, SmPointer client_data)
i = 0;
do {
if (gsPrefix)
snprintf(statefile, len, "%s/.AppInfo/WindowMaker/wmaker.%l%i.state",
snprintf(statefile, len, "%s/Library/WindowMaker/wmaker.%l%i.state",
prefix, t, i);
else
snprintf(statefile, len, "%s/wmaker.%l%i.state", prefix, t, i);