I want to run a script in Python to detect when a user tries to unlock the screen, but fails.I use elementary OS Freya and light-lock. I tried it with dbus, but I couldn't figure out how to do it.I'm trying this:dbus-monitor type='signal',interface='org.freedesktop.login1.Session'This is the result:signal sender=org.freedesktop.DBus -> dest=:1.170 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquiredstring :1.170I don't know what to make of this. Because after that, the terminal stays quiet and doesn't show anything.
Run a script on a failed screen unlock attempt
elementary os;d bus;screen lock