# Add Debian menu support.

diff -urNad flwm-1.01~/Menu.C flwm-1.01/Menu.C
--- flwm-1.01~/Menu.C	2006-06-30 09:02:01.000000000 +0200
+++ flwm-1.01/Menu.C	2006-06-30 09:02:05.000000000 +0200
@@ -393,7 +393,11 @@
   strcpy(path, home);
   if (path[strlen(path)-1] != '/') strcat(path, "/");
   strcat(path, ".wmx/");
-  struct stat st; if (stat(path, &st) < 0) return;
+  struct stat st;
+  if (stat(path, &st) < 0) {
+    strcpy(path, "/var/lib/flwm/wmx/");
+    if (stat(path, &st) < 0) return;
+  }
   if (st.st_mtime == wmx_time) return;
   wmx_time = st.st_mtime;
   num_wmx = 0;
diff -urNad flwm-1.01~/flwm.1 flwm-1.01/flwm.1
--- flwm-1.01~/flwm.1	2006-06-30 09:02:01.000000000 +0200
+++ flwm-1.01/flwm.1	2006-06-30 09:02:05.000000000 +0200
@@ -102,10 +102,13 @@
 chmod +x !*
 .fi
 
-RedHat users can run the program
-.B flwm_wmconfig
-to read the /etc/X11/wmconfig directory and produce an initial set of
-menu items.
+On Debian, flwm has been modified to support a system-wide menu
+.B /var/lib/flwm/wmx
+when no
+.B ~/.wmx
+exists, and scripts were added to take advantage of the Debian menu system
+(see
+.BR update-menus (1)).
 
 .SH MOUSE USAGE
 
