GNU bug report logs - #45629
[PATCH] gnu: Export xorg variables for startx.

Previous Next

Package: guix-patches;

Reported by: John Soo <jsoo1 <at> asu.edu>

Date: Sun, 3 Jan 2021 16:28:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 45629 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#45629; Package guix-patches. (Sun, 03 Jan 2021 16:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Soo <jsoo1 <at> asu.edu>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 03 Jan 2021 16:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Export xorg variables for startx.
Date: Sun, 03 Jan 2021 08:27:36 -0800
[Message part 1 (text/plain, inline)]
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

[0001-gnu-xinit-Specify-xinputs-in-configure-flags.patch (text/x-patch, attachment)]
[0002-gnu-xorg-configuration-directory-Expose-the-function.patch (text/x-patch, attachment)]
[0003-gnu-xorg-configuration-file-Expose-the-function.patch (text/x-patch, attachment)]
[0004-gnu-default-xorg-server-arguments-Expose-variable.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#45629; Package guix-patches. (Thu, 11 Feb 2021 09:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 45629 <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> outlook.com>
To: John Soo <jsoo1 <at> asu.edu>
Cc: 45629 <at> debbugs.gnu.org
Subject: Re: [bug#45629] [PATCH] gnu: Export xorg variables for startx.
Date: Thu, 11 Feb 2021 17:36:06 +0800
John Soo <jsoo1 <at> 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!




Information forwarded to guix-patches <at> gnu.org:
bug#45629; Package guix-patches. (Mon, 22 Feb 2021 03:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 45629 <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: 宋文武 <iyzsong <at> outlook.com>
Cc: 45629 <45629 <at> debbugs.gnu.org>
Subject: Re: [bug#45629] [PATCH] gnu: Export xorg variables for startx.
Date: Sun, 21 Feb 2021 19:39:58 -0800
[Message part 1 (text/plain, inline)]
     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!
     
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#45629; Package guix-patches. (Sat, 27 Feb 2021 06:42:01 GMT) Full text and rfc822 format available.

Message #14 received at 45629 <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> outlook.com>
To: John Soo <jsoo1 <at> asu.edu>
Cc: 45629 <45629 <at> debbugs.gnu.org>
Subject: Re: [bug#45629] [PATCH] gnu: Export xorg variables for startx.
Date: Sat, 27 Feb 2021 14:43:13 +0800
John Soo <jsoo1 <at> 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...




Information forwarded to guix-patches <at> gnu.org:
bug#45629; Package guix-patches. (Wed, 03 Mar 2021 20:01:02 GMT) Full text and rfc822 format available.

Message #17 received at 45629 <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: 宋文武 <iyzsong <at> outlook.com>
Cc: 45629 <45629 <at> debbugs.gnu.org>
Subject: Re: [bug#45629] [PATCH] gnu: Export xorg variables for startx.
Date: Wed, 03 Mar 2021 12:00:27 -0800
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





Information forwarded to guix-patches <at> gnu.org:
bug#45629; Package guix-patches. (Sun, 07 May 2023 18:32:02 GMT) Full text and rfc822 format available.

Message #20 received at 45629 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: John Soo <jsoo1 <at> asu.edu>
Cc: 宋文武 <iyzsong <at> outlook.com>,
 45629 <45629 <at> debbugs.gnu.org>
Subject: Re: bug#45629: [PATCH] gnu: Export xorg variables for startx.
Date: Sun, 07 May 2023 14:31:45 -0400
Hi John,

John Soo <jsoo1 <at> 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.

-- 
Thanks,
Maxim




This bug report was last modified 1 year and 229 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.