Gentoo Archives: gentoo-user

From: edes <edes@×××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] startx Cannot open virtual console 7
Date: Tue, 27 Oct 2020 13:28:56
Message-Id: 20201027102834.1826d74293d90d30f49e063a@gmx.net
In Reply to: Re: [gentoo-user] startx Cannot open virtual console 7 by Michael
1 el Tue, 27 Oct 2020 12:53:44 +0000
2 Michael <confabulate@××××××××.com> escribió:
3
4 > The systemd-logind and elogind by default only allow you to run X on
5 > the console you have logged in as a user.
6
7 So I guess my question is basically if this default can be modified, and
8 how.
9
10 > As I understand it systemd-logind and its elogind derivative both use
11 > the variable $XDG_VTNR to set the VT number. I suppose this variable
12 > could be set to a different VT than the console you login,
13 > via .xinitrc, or .xserverrc, or .bashrc - but I haven't tried it out.
14
15 Setting XDG_VTNR to a different value didn't change anything. As far as
16 I can see, it's not different from running startx -- vtN, and I get the
17 same error.
18
19
20
21 --
22 edes <edes@×××.net>