]> git.pld-linux.org Git - packages/fvwm.git/blame - fvwm.RunWM
- changed %%{!?debug:...}%%{?debug...} to %%{?debug:...}%%{!?debug...}
[packages/fvwm.git] / fvwm.RunWM
CommitLineData
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.
8RCFILE=""
9for tryfile in "$HOME/.fvwmrc.m4" "/etc/X11/AnotherLevel/fvwmrc.m4"; do
10 if [ -f "$tryfile" ]; then
11 RCFILE="$tryfile"
12 break
13 fi
14done
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.
18if [ -n "$RCFILE" ]; then
19 FVWMOPTIONS="-f $RCFILE"
20else
21 FVWMOPTIONS=""
22fi
23
24# if this works, we stop here
25eval "exec /usr/X11R6/bin/fvwm ${FVWMOPTIONS}"
26cat >&2 <<EOF
27 WARNING: You selected Fvwm as your window manager, but your installation
28 does not appear to be functional. The executable /usr/X11R6/bin/fvwm was
29 not found on your system.
30EOF
This page took 0.066722 seconds and 4 git commands to generate.