Bug 866660 - RFE: Add "lock" action (and associated hooks) as an inhibitor action
Summary: RFE: Add "lock" action (and associated hooks) as an inhibitor action
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F18systemd
TreeView+ depends on / blocked
 
Reported: 2012-10-15 20:02 UTC by Ben Boeckel
Modified: 2013-01-20 03:31 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-20 03:31:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ben Boeckel 2012-10-15 20:02:59 UTC
In addition to suspend, halt, etc., it'd be nice to prevent/trigger locking the current session (via screenlockers for X or tlock for the TTY). The lid switch would be much better as 'lock' than 'ignored' here ('suspend' is a silly behavior IMO).

Probably needs things such as:

  - Changes to screen lockers (tlock/xautolock is what I care about, but DE-level WMs would probably like this as well)
  - Video players to inhibit the locking (systemd-inhibit is fine as a partial solution in the interim)

I imagine the simplest thing would be to create a client which has options which are commands to run for "lock" (this should work for both xautolock at least; probably DBus-enabled stuff as well; I don't know how well tlock works if it is run while something like vim or rtorrent is running though what tmux does for setting up lock-command seems to work fine).

Comment 1 Lennart Poettering 2012-10-30 16:51:14 UTC
This is fixed in git.

Comment 2 Fedora Update System 2013-01-14 14:07:43 UTC
systemd-197-1.fc18.1 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-0655/systemd-197-1.fc18.1

Comment 3 Fedora Update System 2013-01-20 03:31:55 UTC
systemd-197-1.fc18.1 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.