Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied)
Date: Tue, 09 Feb 2021 04:59:49
Message-Id: 44b4d0b1-4e0d-7365-802a-351cee1b39ee@sys-concept.com
In Reply to: Re: [gentoo-user] xf86OpenConsole: Cannot open virtual console 1 (Permission denied) by cal
1 On 2/8/21 9:44 PM, cal wrote:
2 [snip]
3 >>
4 >> When I'm directly in front of the PC and I have a log-in screen and type user ID + passwords
5 >> I was under impression that "startxfce4" would run automatically when from .xinitrc
6 >> ~/.xinitrc
7 >> exec startxfce4
8 >>
9 >> but it doesn't, when I log-in the XFCE4 is not starting automatically, I have to type manually: startxfce4
10 >>
11 > I see you have already solved your problem.  But it bears mentioning: .xinitrc is executed by runing `startx`, not by the login shell.
12
13 I see, so instead of going around and calling .xinitrc from .bash_profile
14
15 why not call startxfce4 directly from .bash_profile
16
17 Instead of:
18 if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi
19
20 start as:
21 if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startxfce4; fi
22
23 It should work.

Replies