23de10612c
If you run 'xautolock' instead of '/usr/bin/xautolock', execv will fail because it cannot found the path to the program when the -restart command is requested. Use execvp instead of execv, which will search the environmental PATH to find the program, thus allowing you to just run 'xautolock' rather than the full path. This fixes the bug where playing a video with mpv accidently kills your screenlocker since it calls xdg-screensaver reset, which in turn calls xautolock -restart.
11 lines
275 B
Diff
11 lines
275 B
Diff
--- src/message.c 2018-07-31 01:20:05.740344556 -0400
|
|
+++ src/message.c 2018-07-31 01:16:33.521671009 -0400
|
|
@@ -104,7 +104,7 @@
|
|
{
|
|
XDeleteProperty (d, root, semaphore);
|
|
XFlush (d);
|
|
- execv (argArray[0], argArray);
|
|
+ execvp(argArray[0], argArray);
|
|
}
|
|
}
|
|
|