Commit | Line | Data |
---|---|---|
b90e7e5d DT |
1 | From cbb9c769316b4d32956a2c78aa01a38b473f0cfc Mon Sep 17 00:00:00 2001 |
2 | From: David Thompson <dthompson2@worcester.edu> | |
3 | Date: Fri, 30 Oct 2015 08:30:43 -0400 | |
4 | Subject: [PATCH] xflock4: Do not override PATH with hardcoded value. | |
5 | ||
6 | The PATH "/bin:/usr/bin" may not be a valid search path on the user's | |
7 | machine. The screen locking program may be in /usr/local/bin or | |
8 | elsewhere. Distros that do not conform to the FHS, such as GuixSD and | |
9 | NixOS, will not have their executables in either location. Thus, we | |
10 | simply leave PATH alone. | |
11 | --- | |
12 | scripts/xflock4 | 3 --- | |
13 | 1 file changed, 3 deletions(-) | |
14 | ||
15 | diff --git a/scripts/xflock4 b/scripts/xflock4 | |
16 | index ec4d05d..e7981ac 100644 | |
17 | --- a/scripts/xflock4 | |
18 | +++ b/scripts/xflock4 | |
19 | @@ -21,9 +21,6 @@ | |
20 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
21 | # | |
22 | ||
23 | -PATH=/bin:/usr/bin | |
24 | -export PATH | |
25 | - | |
26 | # Lock by xscreensaver or gnome-screensaver, if a respective daemon is running | |
27 | for lock_cmd in \ | |
28 | "xscreensaver-command -lock" \ | |
29 | -- | |
30 | 2.5.0 | |
31 |