# Add Debian menu support. Index: flwm/Menu.C =================================================================== --- flwm.orig/Menu.C 2015-07-30 09:38:38.446906459 +0200 +++ flwm/Menu.C 2015-07-30 09:38:38.442906384 +0200 @@ -402,7 +402,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; Index: flwm/flwm.1 =================================================================== --- flwm.orig/flwm.1 2015-07-30 09:38:38.446906459 +0200 +++ flwm/flwm.1 2015-07-30 09:38:38.442906384 +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