> "Session tracking" includes suspending/hibernating, because logind has > a mechanism to let apps delay suspend, which is necessary for things > like closing the inherent race condition in "lock the screensaver when > we suspend... oh, oops, it didn't get scheduled until after we > resumed, so the old screen contents are still visible for a moment > when you open your laptop".
xlock && /usr/sbin/pm-suspend That is the flexible way of doing that specific thing with a few ifs or config checks where needed. -- _______________________________________________________________________ 'Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface' (Doug McIlroy) In Other Words - Don't design like polkit or systemd _______________________________________________________________________ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/251878.95358...@smtp135.mail.ir2.yahoo.com