GNU bug report logs -
#30497
[PATCH] services: slim: Make the logged-in session show up in "w".
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30497 in the body.
You can then email your comments to 30497 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#30497
; Package
guix-patches
.
(Sat, 17 Feb 2018 12:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 17 Feb 2018 12:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/services/xorg.scm (slim-shepherd-service): Make the logged-in session
show up in "w".
---
gnu/services/xorg.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 50af2408b..b73dbe0d7 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -467,6 +467,8 @@ authfile /var/run/slim.auth
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"
Information forwarded
to
guix-patches <at> gnu.org
:
bug#30497
; Package
guix-patches
.
(Sat, 17 Feb 2018 15:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 30497 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Danny Milosavljevic <dannym <at> scratchpost.org> writes:
> * gnu/services/xorg.scm (slim-shepherd-service): Make the logged-in session
> show up in "w".
Nit-pick: Instead of reusing the commit title here, it would be better
to mention what is being done, e.g. "Use SESSREG to register X11
session".
[...]
> diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
> index 50af2408b..b73dbe0d7 100644
> --- a/gnu/services/xorg.scm
> +++ b/gnu/services/xorg.scm
> @@ -467,6 +467,8 @@ authfile /var/run/slim.auth
> 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
I'm surprised that this works. I would have expected sessreg to be
unbound in this context, and that it would have to be added to the
<slim-configuration> record similar to xauth and startx.
However I suspect it may be better to add it to the record regardless,
to stay consistent and allow overriding it. WDYT?
This is a change that affects most GuixSD users, so we better not break
anything here :-)
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#30497
; Package
guix-patches
.
(Sat, 17 Feb 2018 16:35:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 30497 <at> debbugs.gnu.org (full text, mbox):
* gnu/services/xorg.scm (slim-shepherd-service): Use SESSREG to register X11
session.
---
gnu/services/xorg.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 50af2408b..ea8433af3 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -437,7 +437,9 @@ desktop session from the system or user profile will be used."
(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 @@ desktop session from the system or user profile will be used."
(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 @@ authfile /var/run/slim.auth
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"
Information forwarded
to
guix-patches <at> gnu.org
:
bug#30497
; Package
guix-patches
.
(Mon, 19 Feb 2018 21:28:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 30497 <at> debbugs.gnu.org (full text, mbox):
Danny Milosavljevic <dannym <at> scratchpost.org> skribis:
> * gnu/services/xorg.scm (slim-shepherd-service): Use SESSREG to register X11
> session.
Please mention the new field in <slim-configuration>, and also add it to
doc/guix.texi.
If you’ve confirmed that it works for you, OK for master.
Thank you!
Ludo’.
bug closed, send any further explanations to
30497 <at> debbugs.gnu.org and Danny Milosavljevic <dannym <at> scratchpost.org>
Request was from
Danny Milosavljevic <dannym <at> scratchpost.org>
to
control <at> debbugs.gnu.org
.
(Tue, 20 Feb 2018 20:22:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 21 Mar 2018 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 149 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.