]> git.pld-linux.org Git - packages/WindowMaker.git/blob - WindowMaker.RunWM
- perl -pi -e "s/^automake -a -c$/automake -a -c -f/"
[packages/WindowMaker.git] / WindowMaker.RunWM
1 #!/bin/sh
2 #
3 # RunWM - this is a script used to launch window manager
4 #
5
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"
9         GSDIR=$HOME/GNUstep
10         if [ ! -d $GSDIR/Defaults ] ; then
11                 mkdir -p $GSDIR/Defaults
12                 install -m 644 $WMCONFIGDIR/* $GSDIR/Defaults
13         fi
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
27         fi
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"
31 else
32 cat <<EOF
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
36  is missing.
37 EOF
38 fi
This page took 0.09078 seconds and 3 git commands to generate.