3 # RunWM - this is a script used to launch window manager
6 if [ -x /usr/X11R6/bin/wmaker -a -d /usr/X11R6/share/WindowMaker ] ; then
7 WMGLOBALDIR="/usr/X11R6/share/WindowMaker"
8 WMCONFIGDIR="/etc/X11/WindowMaker"
10 if [ ! -d $GSDIR/Defaults ] ; then
11 mkdir -p $GSDIR/Defaults
12 install -m 644 $WMCONFIGDIR/* $GSDIR/Defaults
14 if [ ! -d $GSDIR/Library/WindowMaker ] ; then
15 mkdir -p $GSDIR/Library/WindowMaker
16 mkdir -p $GSDIR/Library/WindowMaker/Styles
17 mkdir -p $GSDIR/Library/WindowMaker/Themes
18 mkdir -p $GSDIR/Library/WindowMaker/Backgrounds
19 mkdir -p $GSDIR/Library/WindowMaker/IconSets
20 mkdir -p $GSDIR/Library/WindowMaker/Pixmaps
21 mkdir -p $GSDIR/Library/WindowMaker/Sounds
22 install -m 644 $WMGLOBALDIR/menu* $WMGLOBALDIR/plmenu \
23 $WMGLOBALDIR/wmmacros $WMGLOBALDIR/README \
24 $GSDIR/Library/WindowMaker
25 install -m 755 $WMGLOBALDIR/autostart.sh \
26 $GSDIR/Library/WindowMaker/autostart
28 [ -d $GSDIR/.AppInfo ] || mkdir -p $GSDIR/.AppInfo
29 [ -d $GSDIR/Library/Icons ] || mkdir -p $GSDIR/Library/Icons
30 eval "exec /usr/X11R6/bin/wmaker"
33 WARNING: You selected WindowMaker as your window manager, but your
34 installation of WindowMaker does not appear to be functional. Either
35 /usr/X11R6/bin/wmaker was not found or /usr/share/WindowMaker directory