summaryrefslogtreecommitdiff
path: root/fvwm.RunWM
diff options
context:
space:
mode:
authorJan Rękorajski2000-08-29 14:07:21 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit4b805b23ac43835917f73d1ac57dff4c16e6eef0 (patch)
tree5c367d80a0834771fc677fb3074d2dd8de1854f6 /fvwm.RunWM
parentaf81c711f787bae197c7b87f64ea1cc6e5fd8c6a (diff)
downloadfvwm-4b805b23ac43835917f73d1ac57dff4c16e6eef0.zip
fvwm-4b805b23ac43835917f73d1ac57dff4c16e6eef0.tar.gz
- xinitrc 3.0 xconfigs for window managers
Changed files: fvwm.RunWM -> 1.1 fvwm.wm_style -> 1.1
Diffstat (limited to 'fvwm.RunWM')
-rw-r--r--fvwm.RunWM30
1 files changed, 30 insertions, 0 deletions
diff --git a/fvwm.RunWM b/fvwm.RunWM
new file mode 100644
index 0000000..d1e9699
--- /dev/null
+++ b/fvwm.RunWM
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# RunWM - this is a script used to launch window manager
+#
+
+# first, find an M4-enabled config file (such as
+# the one from AnotherLevel) for fvwm.
+RCFILE=""
+for tryfile in "$HOME/.fvwmrc.m4" "/etc/X11/AnotherLevel/fvwmrc.m4"; do
+ if [ -f "$tryfile" ]; then
+ RCFILE="$tryfile"
+ break
+ fi
+done
+
+# if it really exists, use it; if not, fvwm2 or fvwm95 will
+# automagically look for a config file in the regular places.
+if [ -n "$RCFILE" ]; then
+ FVWMOPTIONS="-f $RCFILE"
+else
+ FVWMOPTIONS=""
+fi
+
+# if this works, we stop here
+eval "exec /usr/X11R6/bin/fvwm ${FVWMOPTIONS}"
+cat >&2 <<EOF
+ WARNING: You selected Fvwm as your window manager, but your installation
+ does not appear to be functional. The executable /usr/X11R6/bin/fvwm was
+ not found on your system.
+EOF