1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-09 18:15:54 +01:00

fixed bug in builtin xpm loader

fixed crash bug in menu editor
This commit is contained in:
kojima
2001-01-06 22:38:07 +00:00
parent bb7314ddac
commit e314838447
8 changed files with 60 additions and 13 deletions

View File

@@ -11,6 +11,12 @@ else
fi
# /xx herbert
LOCALE=$LANG
if [ -z "$LOCALE" ]; then
LOCALE=$LC_ALL
fi
# directory where system wide configuration is stored
GLOBALDIR="#pkgdatadir#"
GLOBALDEFDIR="#sysconfdir#"
@@ -56,6 +62,16 @@ copy() {
rm -f $target
if [ "$file" = "WindowMaker" ]; then
sed -e "s|~/GNUstep|$GSDIR|g" $source > $target
elif [ "$file" = "WMRootMenu" ]; then
if [ "$LOCALE" ]; then
if [ -f $GLOBALDIR/plmenu.${LOCALE%_*} ]; then
cp $GLOBALDIR/plmenu.${LOCALE%_*} $GSDIR/Defaults/WMRootMenu
else
cp $GLOBALDIR/plmenu $GSDIR/Defaults/WMRootMenu
fi
else
cp $GLOBALDIR/plmenu $GSDIR/Defaults/WMRootMenu
fi
else
if test "x$GNUSTEP_USER_ROOT" = "x"; then
sed -e "s:#wmdatadir#:$GLOBALDIR:g" \