Set LockedHint in logind
According to https://www.man7.org/linux/man-pages/man5/org.freedesktop.login1.5.html desktop environments can use SetLockedHint to indicate whether the session is locked. This can then be queried by apps to do stuff.
According to https://www.man7.org/linux/man-pages/man5/org.freedesktop.login1.5.html desktop environments can use SetLockedHint to indicate whether the session is locked. This can then be queried by apps to do stuff.