]> git.pld-linux.org Git - packages/fvwm.git/blob - fvwm.RunWM
- massive change ( validate errors warrings from desktop-file-validate)
[packages/fvwm.git] / fvwm.RunWM
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
25 eval "exec /usr/bin/fvwm ${FVWMOPTIONS}"
26 cat >&2 <<EOF
27  WARNING: You selected Fvwm as your window manager, but your installation
28  does not appear to be functional. The executable /usr/bin/fvwm was 
29  not found on your system.
30 EOF
This page took 0.059712 seconds and 3 git commands to generate.