Debian Codegraph @

debian/patches/01-debian-menu.diff

raw
1 # Add Debian menu support.
2
3 Index: flwm/Menu.C
4 ===================================================================
5 --- flwm.orig/Menu.C 2015-07-30 09:38:38.446906459 +0200
6 +++ flwm/Menu.C 2015-07-30 09:38:38.442906384 +0200
7 @@ -402,7 +402,11 @@
8 strcpy(path, home);
9 if (path[strlen(path)-1] != '/') strcat(path, "/");
10 strcat(path, ".wmx/");
11 - struct stat st; if (stat(path, &st) < 0) return;
12 + struct stat st;
13 + if (stat(path, &st) < 0) {
14 + strcpy(path, "/var/lib/flwm/wmx/");
15 + if (stat(path, &st) < 0) return;
16 + }
17 if (st.st_mtime == wmx_time) return;
18 wmx_time = st.st_mtime;
19 num_wmx = 0;
20 Index: flwm/flwm.1
21 ===================================================================
22 --- flwm.orig/flwm.1 2015-07-30 09:38:38.446906459 +0200
23 +++ flwm/flwm.1 2015-07-30 09:38:38.442906384 +0200
24 @@ -102,10 +102,13 @@
25 chmod +x !*
26 .fi
27
28 -RedHat users can run the program
29 -.B flwm_wmconfig
30 -to read the /etc/X11/wmconfig directory and produce an initial set of
31 -menu items.
32 +On Debian, flwm has been modified to support a system-wide menu
33 +.B /var/lib/flwm/wmx
34 +when no
35 +.B ~/.wmx
36 +exists, and scripts were added to take advantage of the Debian menu system
37 +(see
38 +.BR update-menus (1)).
39
40 .SH MOUSE USAGE
41