Message ID | 878s9a2dfr.fsf@asu.edu |
---|---|
State | New |
Headers | show |
Series | [bug#45629] gnu: Export xorg variables for startx. | expand |
Context | Check | Description |
---|---|---|
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
John Soo <jsoo1@asu.edu> writes: > Hi Guix, > > I wanted to try using startx instead of a display manager. I finally > got it to work, but it required at very least these patches. I also had > to create a new service type but I think that it needs more work to be > put in upstream. Hello, I have added a 'xorg-server-service-type' for this usage. It can be used with 'sx' (as a normal user), or 'xinit'. For 'xinit', you need to create a '~/.xserverrc` file with: tty=$(tty) tty=${tty#/dev/tty} X vt${tty} To use X in PATH and the current tty for rootless X server. Do thoes patches still needed now? Thank you!
Hello! Are the patches merged? I’m not sure I see the service in master. If they are, these patches may not be required. Thanks!
John Soo <jsoo1@asu.edu> writes:
> Are the patches merged? I’m not sure I see the service in master. If they are, these patches may not be required.
Yes, it's 'xorg-server-service-type' which will put a configured (by
xorg-configuration) X under /run/current-system/profile/bin.
With it, use 'sx' or 'xinit' as a normal user should works.
I haven't document it in the manual though...
Hi again, My setup for startx makes sure X is setgid and sets a few environment variables for the process. I am not sure symlinking X to the bin directory is exactly what I need. Check out what I do here: https://github.com/jsoo1/dotfiles/blob/release/guix/config.scm The relevant pieces are the chown-program-service-type, and startx definition. Thanks again for improving the startx experience on Guix. Kindly, John
Hi John, John Soo <jsoo1@asu.edu> writes: > Hi again, > > My setup for startx makes sure X is setgid and sets a few environment > variables for the process. I am not sure symlinking X to the bin > directory is exactly what I need. Could you please try and report of any success/problems encountered when using xorg-server-service-type? If it works, we can close this issue.
From c217dcdb5a40f6b921541ebda19e78fe400ae27f Mon Sep 17 00:00:00 2001 From: John Soo <jsoo1@asu.edu> Date: Thu, 2 Apr 2020 03:58:07 -0700 Subject: [PATCH 4/4] gnu: %default-xorg-server-arguments: Expose variable. * gnu/services/xorg.scm (%default-xorg-server-arguments): Expose it. --- gnu/services/xorg.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index fcd9b4d4f1..6a1d9e07b6 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -68,6 +68,7 @@ xorg-configuration-directory xorg-configuration->file + %default-xorg-server-arguments %default-xorg-modules %default-xorg-fonts xorg-wrapper -- 2.29.2