PATCH - implement LockWorkStation using xdg-screensaver

Hans Leidekker hans at
Sat May 12 09:01:52 CDT 2007

On Saturday 12 May 2007 12:13:42 Steven Edwards wrote:

+#include <stdlib.h>
+#include <unistd.h>

It would be nice if we could avoid using Unix APIs in user32...

+    static const char screensaver[] = "/usr/bin/xdg-screensaver";

as well as this hardcoded path.

How about the following patch? I added an option --lock to wineboot
which does an execvp using the Unix search path. LockWorkStation
then calls CreateProcess on "wineboot --lock", analogous to what
ExitWindowsEx does.

When running in a virtual desktop we should probably give precedence
to a Windows screensaver.

  Implement LockWorkStation using xdg-screensaver.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: user32_01.diff
Type: text/x-diff
Size: 4090 bytes
Desc: not available
Url :

More information about the wine-patches mailing list