unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#29112] [PATCH 1/3] gnu: gdm: Fix config file path.
  2017-11-02  3:48 [bug#29112] [PATCH 0/3] GDM patches Timothy Sample
@ 2017-10-24  0:44 ` Timothy Sample
  2017-11-07 16:29   ` Ludovic Courtès
  2017-10-24  1:36 ` [bug#29112] [PATCH 2/3] gnu: gdm: Add configure flags for better defaults Timothy Sample
  2017-11-02  2:12 ` [bug#29112] [PATCH 3/3] services: gdm: Add environment variables Timothy Sample
  2 siblings, 1 reply; 7+ messages in thread
From: Timothy Sample @ 2017-10-24  0:44 UTC (permalink / raw)
  To: 29112

* gnu/packages/gnome.scm (gdm)[arguments]<#:phases>: Fix the
'pre-configure phase so that GDM finds its config file.
---
 gnu/packages/gnome.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ecfd63d25..ef52871c8 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5287,9 +5287,9 @@ libxml2.")
                 "    \"/run/current-system/profile/etc/xdg\");\n"
                 )))
             ;; Look for custom GDM conf in /run/current-system.
-            (substitute* '("common/gdm-settings-backend.c")
+            (substitute* '("common/gdm-settings-desktop-backend.c")
               (("GDM_CUSTOM_CONF")
-               "/run/current-system/etc/gdm/custom.conf"))
+               "\"/run/current-system/etc/gdm/custom.conf\""))
             ;; Use service-supplied path to X.
             (substitute* '("daemon/gdm-server.c")
               (("\\(X_SERVER X_SERVER_ARG_FORMAT")
-- 
2.14.3

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

* [bug#29112] [PATCH 2/3] gnu: gdm: Add configure flags for better defaults.
  2017-11-02  3:48 [bug#29112] [PATCH 0/3] GDM patches Timothy Sample
  2017-10-24  0:44 ` [bug#29112] [PATCH 1/3] gnu: gdm: Fix config file path Timothy Sample
@ 2017-10-24  1:36 ` Timothy Sample
  2017-11-07 16:31   ` Ludovic Courtès
  2017-11-02  2:12 ` [bug#29112] [PATCH 3/3] services: gdm: Add environment variables Timothy Sample
  2 siblings, 1 reply; 7+ messages in thread
From: Timothy Sample @ 2017-10-24  1:36 UTC (permalink / raw)
  To: 29112

Using --with-initial-vt=7 allows GDM to run alongside TTY 1, instead of
having to replace it (i.e., stopping the mingetty service for TTY 1
before starting GDM).

By default, GDM expects distributions to install a custom Xsession
script. It provides a generic one if --enable-gdm-xsession is set.

* gnu/packages/gnome.scm (gdm)[arguments]<#:configure-flags>: Add
--with-initial-vt=7 and --enable-gdm-xsession.
---
 gnu/packages/gnome.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index ef52871c8..d8e4cd418 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5223,6 +5223,8 @@ libxml2.")
      '(#:configure-flags
        `("--without-plymouth"
          "--disable-systemd-journal"
+         "--with-initial-vt=7"
+         "--enable-gdm-xsession"
          "--localstatedir=/var"
          ,(string-append "--with-default-path="
                          (string-join '("/run/setuid-programs"
-- 
2.14.3

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

* [bug#29112] [PATCH 3/3] services: gdm: Add environment variables.
  2017-11-02  3:48 [bug#29112] [PATCH 0/3] GDM patches Timothy Sample
  2017-10-24  0:44 ` [bug#29112] [PATCH 1/3] gnu: gdm: Fix config file path Timothy Sample
  2017-10-24  1:36 ` [bug#29112] [PATCH 2/3] gnu: gdm: Add configure flags for better defaults Timothy Sample
@ 2017-11-02  2:12 ` Timothy Sample
  2017-11-07 16:32   ` bug#29112: " Ludovic Courtès
  2 siblings, 1 reply; 7+ messages in thread
From: Timothy Sample @ 2017-11-02  2:12 UTC (permalink / raw)
  To: 29112

While not an optimal solution (see comment), this makes GDM functional.

* gnu/services/xorg.scm (gdm-shepherd-service): Set PATH and XDG_DATA_DIRS
environment variables.
---
 gnu/services/xorg.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 6200fa302..c5a1a0d42 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -573,7 +573,14 @@ makes the good ol' XlockMore usable."
                      #:environment-variables
                      (list (string-append
                             "GDM_X_SERVER="
-                            #$(gdm-configuration-x-server config))))))
+                            #$(gdm-configuration-x-server config))
+                           ;; XXX: GDM requires access to a handful of
+                           ;; programs and components from Gnome (gnome-shell,
+                           ;; dbus, and gnome-session among others). The
+                           ;; following variables only work provided Gnome is
+                           ;; installed.
+                           "XDG_DATA_DIRS=/run/current-system/profile/share"
+                           "PATH=/run/current-system/profile/bin"))))
          (stop #~(make-kill-destructor))
          (respawn? #t))))
 
-- 
2.14.3

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

* [bug#29112] [PATCH 0/3] GDM patches
@ 2017-11-02  3:48 Timothy Sample
  2017-10-24  0:44 ` [bug#29112] [PATCH 1/3] gnu: gdm: Fix config file path Timothy Sample
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Timothy Sample @ 2017-11-02  3:48 UTC (permalink / raw)
  To: 29112

Hi,

These patches make GDM semi-functional (cf. [1] for all the details).

Note that this will not work in QEMU with the default “-vga std”. I’ve
been using “-vga qxl” (other options may or may not work).


-- Tim

[1] https://lists.gnu.org/archive/html/guix-devel/2017-10/msg00231.html

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

* [bug#29112] [PATCH 1/3] gnu: gdm: Fix config file path.
  2017-10-24  0:44 ` [bug#29112] [PATCH 1/3] gnu: gdm: Fix config file path Timothy Sample
@ 2017-11-07 16:29   ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2017-11-07 16:29 UTC (permalink / raw)
  To: Timothy Sample; +Cc: 29112

Timothy Sample <samplet@ngyro.com> skribis:

> * gnu/packages/gnome.scm (gdm)[arguments]<#:phases>: Fix the
> 'pre-configure phase so that GDM finds its config file.

Applied, thanks!

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

* [bug#29112] [PATCH 2/3] gnu: gdm: Add configure flags for better defaults.
  2017-10-24  1:36 ` [bug#29112] [PATCH 2/3] gnu: gdm: Add configure flags for better defaults Timothy Sample
@ 2017-11-07 16:31   ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2017-11-07 16:31 UTC (permalink / raw)
  To: Timothy Sample; +Cc: 29112

Timothy Sample <samplet@ngyro.com> skribis:

> Using --with-initial-vt=7 allows GDM to run alongside TTY 1, instead of
> having to replace it (i.e., stopping the mingetty service for TTY 1
> before starting GDM).
>
> By default, GDM expects distributions to install a custom Xsession
> script. It provides a generic one if --enable-gdm-xsession is set.
>
> * gnu/packages/gnome.scm (gdm)[arguments]<#:configure-flags>: Add
> --with-initial-vt=7 and --enable-gdm-xsession.

I moved the explanations as comments in the code and committed.

Thanks,
Ludo'.

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

* bug#29112: [PATCH 3/3] services: gdm: Add environment variables.
  2017-11-02  2:12 ` [bug#29112] [PATCH 3/3] services: gdm: Add environment variables Timothy Sample
@ 2017-11-07 16:32   ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2017-11-07 16:32 UTC (permalink / raw)
  To: Timothy Sample; +Cc: 29112-done

Timothy Sample <timsample@gmail.com> skribis:

> While not an optimal solution (see comment), this makes GDM functional.
>
> * gnu/services/xorg.scm (gdm-shepherd-service): Set PATH and XDG_DATA_DIRS
> environment variables.

Awesome, thank you for these patches!

Ludo’.

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

end of thread, other threads:[~2017-11-07 16:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-02  3:48 [bug#29112] [PATCH 0/3] GDM patches Timothy Sample
2017-10-24  0:44 ` [bug#29112] [PATCH 1/3] gnu: gdm: Fix config file path Timothy Sample
2017-11-07 16:29   ` Ludovic Courtès
2017-10-24  1:36 ` [bug#29112] [PATCH 2/3] gnu: gdm: Add configure flags for better defaults Timothy Sample
2017-11-07 16:31   ` Ludovic Courtès
2017-11-02  2:12 ` [bug#29112] [PATCH 3/3] services: gdm: Add environment variables Timothy Sample
2017-11-07 16:32   ` bug#29112: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).