mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
log slim logins to utmp/wtmp
This will be needed for the next physlock release.
This commit is contained in:
parent
9709a8fe0d
commit
d39911e6e7
2 changed files with 19 additions and 0 deletions
|
|
@ -14,6 +14,9 @@
|
|||
- name: Install xev
|
||||
pacman: name=xorg-xev state=present
|
||||
|
||||
- name: Install xorg-sessreg
|
||||
pacman: name=xorg-sessreg state=present
|
||||
|
||||
- name: Install video driver(s)
|
||||
pacman: name={{ item }} state=present
|
||||
with_items: "{{ video_drivers }}"
|
||||
|
|
|
|||
|
|
@ -16,3 +16,19 @@
|
|||
line="login_cmd exec {{ user.shell }} --login ~/.xinitrc %session"
|
||||
tags:
|
||||
- slim
|
||||
|
||||
- name: Configure SLiM to properly log logins to utmp and wtmp
|
||||
lineinfile: dest=/etc/slim.conf
|
||||
regexp=^sessionstart_cmd
|
||||
state=present
|
||||
line="sessionstart_cmd /usr/bin/sessreg -a -l tty$(fgconsole) %user"
|
||||
tags:
|
||||
- slim
|
||||
|
||||
- name: Configure SLiM to properly log logouts to utmp and wtmp
|
||||
lineinfile: dest=/etc/slim.conf
|
||||
regexp=^sessionstop_cmd
|
||||
state=present
|
||||
line="sessionstop_cmd /usr/bin/sessreg -d -l tty$(fgconsole) %user"
|
||||
tags:
|
||||
- slim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue