Bug 380416

Summary: Please allow a hook script in kscreenlock
Product: [Unmaintained] kscreenlocker Reporter: Marc Haber <mh+kde-bugs>
Component: libraryAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: bshah, mgraesslin
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marc Haber 2017-06-01 08:44:12 UTC
Hi,

I would like to automatically zap my ssh keys from the ssh agent when the screen is locked. This would most elegantly be done if there were a possibility to have kscreenlocker run a script when the screen is being locked.

Greetings
Marc
Comment 1 Martin Flöser 2017-06-14 20:33:19 UTC
kscreenlocker supports the org.freedesktop.ScreenSaver dbus interface which provides an ActiveChanged signal. You can connect any script to it as you wish and perform any action you want.

Given that I don't see the need to add custom code to execute scripts.