]>
Commit | Line | Data |
---|---|---|
4b805b23 JR |
1 | #!/bin/sh |
2 | # | |
3 | # RunWM - this is a script used to launch window manager | |
4 | # | |
5 | ||
6 | # first, find an M4-enabled config file (such as | |
7 | # the one from AnotherLevel) for fvwm. | |
8 | RCFILE="" | |
9 | for tryfile in "$HOME/.fvwmrc.m4" "/etc/X11/AnotherLevel/fvwmrc.m4"; do | |
10 | if [ -f "$tryfile" ]; then | |
11 | RCFILE="$tryfile" | |
12 | break | |
13 | fi | |
14 | done | |
15 | ||
16 | # if it really exists, use it; if not, fvwm2 or fvwm95 will | |
17 | # automagically look for a config file in the regular places. | |
18 | if [ -n "$RCFILE" ]; then | |
19 | FVWMOPTIONS="-f $RCFILE" | |
20 | else | |
21 | FVWMOPTIONS="" | |
22 | fi | |
23 | ||
24 | # if this works, we stop here | |
b0346a1c | 25 | eval "exec /usr/bin/fvwm ${FVWMOPTIONS}" |
4b805b23 JR |
26 | cat >&2 <<EOF |
27 | WARNING: You selected Fvwm as your window manager, but your installation | |
b0346a1c | 28 | does not appear to be functional. The executable /usr/bin/fvwm was |
4b805b23 JR |
29 | not found on your system. |
30 | EOF |