user32.dll: Implementation for LockWorkStation() based on xdg-screensaver

Paul Chitescu paulc at voip.null.ro
Tue Sep 9 10:25:03 CDT 2008


Changelog:
        user32.dll: Implementation for LockWorkStation() based on 
xdg-screensaver

Thanks to Steven Edwards (winehacker at gmail.com) for the idea of 
using "xdg-screensaver lock".

The -impl patch applies to unpatched wine.
The -stub2impl applies to wine if the LockWorkStation stub patch is already 
applied.

Known problems:
1. Although trying to check with access() if /usr/bin/xdg-screensaver is 
executable there is no error returned from spawnvp() if exec() eventually 
fails after fork() succeeds. Unlikely but possible.
2. No way to disable it - maybe users don't want their screen locked.
3. Doesn't take into account virtual desktops, and I have no idea what it 
should do in that case, just deny access?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: user32_LockWorkStation-impl.patch
Type: text/x-diff
Size: 1748 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080909/cb041c00/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: user32_LockWorkStation-stub2impl.patch
Type: text/x-diff
Size: 1038 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080909/cb041c00/attachment-0001.patch 


More information about the wine-patches mailing list