public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Björn Fischer" <bf@cebitec.uni-bielefeld.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] can't start X as user
Date: Fri, 16 Jun 2023 14:59:06 +0200	[thread overview]
Message-ID: <e78e9db2-0de5-a606-a4d7-b2db5c50a1ac@cebitec.uni-bielefeld.de> (raw)
In-Reply-To: <ZIp1qZlH3/Xyryu2@ca.inter.net>

Hi Philip,

> My user is in 'tty wheel usb input video' (among others).

that shoud suffice.

You need to use '-keeptty' for xinit and preselect a TTY. For myself I 
have put this into my bashrc and it works quite well:

xinit ()
{
     local VT;
     local DISPLAY;
     VT=vt$(tty | sed 's/.*tty//');
     DISPLAY=:$(pgrep -cf 'X.*keeptty.*vt');
     /usr/bin/xinit -- $DISPLAY -keeptty -wr $VT
}

Cheers
Björn


  parent reply	other threads:[~2023-06-16 12:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-14  0:21 [gentoo-user] can't start X as user Philip Webb
2023-06-14  0:36 ` Jack
2023-06-14  8:53 ` Michael
2023-06-15  2:21   ` Philip Webb
2023-06-15 12:32     ` Michael
2023-06-16 12:59     ` Björn Fischer [this message]
2023-06-14 15:23 ` [gentoo-user] " James Cloos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e78e9db2-0de5-a606-a4d7-b2db5c50a1ac@cebitec.uni-bielefeld.de \
    --to=bf@cebitec.uni-bielefeld.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox