diff mbox series

[bug#45629] gnu: Export xorg variables for startx.

Message ID 878s9a2dfr.fsf@asu.edu
State New
Headers show
Series [bug#45629] gnu: Export xorg variables for startx. | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

John Soo Jan. 3, 2021, 4:27 p.m. UTC
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.

Is startx something we want to support?  It seems like the user should
be able to construct a system as the they see fit.

What do you think?

- John

Comments

宋文武 Feb. 11, 2021, 9:36 a.m. UTC | #1
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!
John Soo Feb. 22, 2021, 3:39 a.m. UTC | #2
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!
宋文武 Feb. 27, 2021, 6:43 a.m. UTC | #3
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...
John Soo March 3, 2021, 8 p.m. UTC | #4
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
Maxim Cournoyer May 7, 2023, 6:31 p.m. UTC | #5
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.
diff mbox series

Patch

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