- orphaned, outdated
[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
b0346a1c 25eval "exec /usr/bin/fvwm ${FVWMOPTIONS}"
4b805b23
JR
26cat >&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.
30EOF
This page took 0.055445 seconds and 4 git commands to generate.