mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
services: slim: Make the logged-in session show up in "w".
* gnu/services/xorg.scm (slim-shepherd-service): Use SESSREG to register X11 session. * doc/guix.texi (slim-configuration): Document new field "sessreg".
This commit is contained in:
parent
1b541c3e93
commit
736e45a278
2 changed files with 10 additions and 2 deletions
|
@ -11263,6 +11263,9 @@ The XAuth package to use.
|
|||
The Shepherd package used when invoking @command{halt} and
|
||||
@command{reboot}.
|
||||
|
||||
@item @code{sessreg} (default: @code{sessreg})
|
||||
The sessreg package used in order to register the session.
|
||||
|
||||
@item @code{slim} (default: @code{slim})
|
||||
The SLiM package to use.
|
||||
@end table
|
||||
|
|
|
@ -437,7 +437,9 @@ (define-record-type* <slim-configuration>
|
|||
(auto-login-session slim-configuration-auto-login-session
|
||||
(default #f))
|
||||
(startx slim-configuration-startx
|
||||
(default (xorg-start-command))))
|
||||
(default (xorg-start-command)))
|
||||
(sessreg slim-configuration-sessreg
|
||||
(default sessreg)))
|
||||
|
||||
(define (slim-pam-service config)
|
||||
"Return a PAM service for @command{slim}."
|
||||
|
@ -454,7 +456,8 @@ (define slim.cfg
|
|||
(xauth (slim-configuration-xauth config))
|
||||
(startx (slim-configuration-startx config))
|
||||
(shepherd (slim-configuration-shepherd config))
|
||||
(theme-name (slim-configuration-theme-name config)))
|
||||
(theme-name (slim-configuration-theme-name config))
|
||||
(sessreg (slim-configuration-sessreg config)))
|
||||
(mixed-text-file "slim.cfg" "
|
||||
default_path /run/current-system/profile/bin
|
||||
default_xserver " startx "
|
||||
|
@ -467,6 +470,8 @@ (define slim.cfg
|
|||
login_cmd exec " xinitrc " %session
|
||||
sessiondir /run/current-system/profile/share/xsessions
|
||||
session_msg session (F1 to change):
|
||||
sessionstart_cmd " sessreg "/bin/sessreg -a -l $DISPLAY %user
|
||||
sessionstop_cmd " sessreg "/bin/sessreg -d -l $DISPLAY %user
|
||||
|
||||
halt_cmd " shepherd "/sbin/halt
|
||||
reboot_cmd " shepherd "/sbin/reboot\n"
|
||||
|
|
Loading…
Reference in a new issue