1 |
On 2/9/21 5:04 PM, thelma@×××××××××××.com wrote: |
2 |
> On 2/8/21 9:59 PM, thelma@×××××××××××.com wrote: |
3 |
>> On 2/8/21 9:44 PM, cal wrote: |
4 |
>> [snip] |
5 |
>>>> |
6 |
>>>> When I'm directly in front of the PC and I have a log-in screen and type user ID + passwords |
7 |
>>>> I was under impression that "startxfce4" would run automatically when from .xinitrc |
8 |
>>>> ~/.xinitrc |
9 |
>>>> exec startxfce4 |
10 |
>>>> |
11 |
>>>> but it doesn't, when I log-in the XFCE4 is not starting automatically, I have to type manually: startxfce4 |
12 |
>>>> |
13 |
>>> I see you have already solved your problem. But it bears mentioning: .xinitrc is executed by runing `startx`, not by the login shell. |
14 |
>> |
15 |
>> I see, so instead of going around and calling .xinitrc from .bash_profile |
16 |
>> |
17 |
>> why not call startxfce4 directly from .bash_profile |
18 |
>> |
19 |
>> Instead of: |
20 |
>> if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi |
21 |
>> |
22 |
>> start as: |
23 |
>> if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startxfce4; fi |
24 |
>> |
25 |
>> It should work. |
26 |
> |
27 |
> With the above setup starting "startxfce4" from .bash_profile, I get an error when ssh: |
28 |
> "No xauth data; using fake authentication data for X11 forwarding." |
29 |
> |
30 |
> This error does not show up when "startxfce4" is run from .xinitrc |
31 |
> I don't know what difference it makes how xfce4 is started. |
32 |
> |
33 |
> |
34 |
startx does some additional work besides just running the .xinitrc |
35 |
script. If you are not using a display manager, startx is the correct |
36 |
way to start X, with .xinitrc containing the commands to launch your |
37 |
window manager. |
38 |
|
39 |
My .xinitrc: |
40 |
if [ -d /etc/X11/xinit/xinitrc.d ]; then |
41 |
for f in /etc/X11/xinit/xinitrc.d/*; do |
42 |
[ -x "$f" ] && . "$f" |
43 |
done |
44 |
unset f |
45 |
fi |
46 |
|
47 |
exec dbus-launch --exit-with-session i3 |