1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +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

@@ -11,7 +11,7 @@ Changes since version 0.91.0:
default installation path (for non GNUstep users) is now $(prefix)/bin default installation path (for non GNUstep users) is now $(prefix)/bin
- fixed bug with infinite loop in some circumstances in fitText() in WINGs - fixed bug with infinite loop in some circumstances in fitText() in WINGs
- fixed to allow parallel builds on SMP systems using make -j - fixed to allow parallel builds on SMP systems using make -j
- applied .AppInfo --> Library path rename patch (Alex Perez <aperez@student.santarosa.edu>)
Changes since version 0.90.0: Changes since version 0.90.0:
............................. .............................

View File

@@ -4,8 +4,11 @@ BUILT_SOURCES = wconfig.h
bin_PROGRAMS = wmaker bin_PROGRAMS = wmaker
noinst_PROGRAMS = wsmap
EXTRA_DIST = EXTRA_DIST =
wsmap_SOURCES= wsmap.c
wmaker_SOURCES = \ wmaker_SOURCES = \
GNUstep.h \ GNUstep.h \
@@ -121,3 +124,11 @@ wmaker_LDADD = \
@INTLIBS@ \ @INTLIBS@ \
@DLLIBS@ @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 /* If the icon was saved by us from the client supplied icon, but is
* missing, recreate it. */ * missing, recreate it. */
if (tmp && strstr(tmp, ".AppInfo/WindowMaker")!=NULL && if (tmp && strstr(tmp, "Library/WindowMaker/CachedPixmaps")!=NULL &&
stat(tmp, &dummy)!=0 && errno==ENOENT) { stat(tmp, &dummy)!=0 && errno==ENOENT) {
wmessage(_("recreating missing icon '%s'"), tmp); wmessage(_("recreating missing icon '%s'"), tmp);
path = wIconStore(wapp->app_icon->icon); path = wIconStore(wapp->app_icon->icon);

View File

@@ -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/.AppInfo", prefix); snprintf(path, len, "%s/Library/WindowMaker/CachedPixmaps", 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)) {
@@ -527,7 +527,7 @@ getnameforicon(WWindow *wwin)
/* /*
* wIconStore-- * 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 * and returns the path for that icon. Returns NULL if there is no
* client supplied icon or on failure. * 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 * might want to keep the dock configuration while not wanting to
* resume a previously saved session. * resume a previously saved session.
* So, wmaker specific state info can be saved in * 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 better to not put it in the defaults directory because:
* - its not a defaults file (having domain names like wmaker0089504baa * - its not a defaults file (having domain names like wmaker0089504baa
* in the defaults directory wouldn't be very neat) * in the defaults directory wouldn't be very neat)
@@ -1023,7 +1023,7 @@ smSaveYourselfPhase2Proc(SmcConn smc_conn, SmPointer client_data)
i = 0; i = 0;
do { do {
if (gsPrefix) 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); prefix, t, i);
else else
snprintf(statefile, len, "%s/wmaker.%l%i.state", prefix, t, i); snprintf(statefile, len, "%s/wmaker.%l%i.state", prefix, t, i);

View File

@@ -135,8 +135,12 @@ else
fi fi
if [ ! -d "$GSDIR/.AppInfo" ]; then if [ ! -d "$GSDIR/Library/WindowMaker/CachedPixmaps" ]; then
make_dir $GSDIR/.AppInfo make_dir $GSDIR/WindowMaker/CachedPixmaps
fi
if [ ! -d "$GSDIR/Library/WindowMaker/WPrefs" ]; then
make_dir $GSDIR/WindowMaker/WPrefs
fi fi
if [ ! -d "$GSDIR/Defaults" ]; then if [ ! -d "$GSDIR/Defaults" ]; then

View File

@@ -41,17 +41,18 @@ main()
char *RequiredDirectories[] = { char *RequiredDirectories[] = {
"/Defaults", "/Defaults",
"/.AppInfo",
"/Library", "/Library",
"/Library/Icons", "/Library/Icons",
"/Library/WindowMaker", "/Library/WindowMaker",
"/Library/WindowMaker/Backgrounds", "/Library/WindowMaker/Backgrounds",
"/Library/WindowMaker/IconSets", "/Library/WindowMaker/IconSets",
"/Library/WindowMaker/Pixmaps", "/Library/WindowMaker/Pixmaps",
"/Library/WindowMaker/CachedPixmaps",
"/Library/WindowMaker/SoundSets", "/Library/WindowMaker/SoundSets",
"/Library/WindowMaker/Sounds", "/Library/WindowMaker/Sounds",
"/Library/WindowMaker/Styles", "/Library/WindowMaker/Styles",
"/Library/WindowMaker/Themes", "/Library/WindowMaker/Themes",
"/Library/WindowMaker/WPrefs",
NULL NULL
}; };