all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#30497] [PATCH] services: slim: Make the logged-in session show up in "w".
@ 2018-02-17 12:00 Danny Milosavljevic
  2018-02-17 15:36 ` Marius Bakke
  2018-02-17 16:34 ` [bug#30497] [PATCH v2] " Danny Milosavljevic
  0 siblings, 2 replies; 4+ messages in thread
From: Danny Milosavljevic @ 2018-02-17 12:00 UTC (permalink / raw)
  To: 30497

* 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"

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#30497] [PATCH] services: slim: Make the logged-in session show up in "w".
  2018-02-17 12:00 [bug#30497] [PATCH] services: slim: Make the logged-in session show up in "w" Danny Milosavljevic
@ 2018-02-17 15:36 ` Marius Bakke
  2018-02-17 16:34 ` [bug#30497] [PATCH v2] " Danny Milosavljevic
  1 sibling, 0 replies; 4+ messages in thread
From: Marius Bakke @ 2018-02-17 15:36 UTC (permalink / raw)
  To: Danny Milosavljevic, 30497

[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]

Danny Milosavljevic <dannym@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 :-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#30497] [PATCH v2] services: slim: Make the logged-in session show up in "w".
  2018-02-17 12:00 [bug#30497] [PATCH] services: slim: Make the logged-in session show up in "w" Danny Milosavljevic
  2018-02-17 15:36 ` Marius Bakke
@ 2018-02-17 16:34 ` Danny Milosavljevic
  2018-02-19 21:27   ` Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2018-02-17 16:34 UTC (permalink / raw)
  To: 30497

* 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"

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#30497] [PATCH v2] services: slim: Make the logged-in session show up in "w".
  2018-02-17 16:34 ` [bug#30497] [PATCH v2] " Danny Milosavljevic
@ 2018-02-19 21:27   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2018-02-19 21:27 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30497

Danny Milosavljevic <dannym@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’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-19 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-17 12:00 [bug#30497] [PATCH] services: slim: Make the logged-in session show up in "w" Danny Milosavljevic
2018-02-17 15:36 ` Marius Bakke
2018-02-17 16:34 ` [bug#30497] [PATCH v2] " Danny Milosavljevic
2018-02-19 21:27   ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.