On 2/8/21 9:44 PM, cal wrote:
[snip]
>>
>> When I'm directly in front of the PC and I have a log-in screen and type 
>> user ID + passwords
>> I was under impression that "startxfce4" would run automatically when from 
>> .xinitrc
>> ~/.xinitrc
>> exec startxfce4
>>
>> but it doesn't, when I log-in the XFCE4 is not starting automatically, I 
>> have to type manually: startxfce4
>>
> I see you have already solved your problem.  But it bears mentioning: 
> .xinitrc is executed by runing `startx`, not by the login shell.

I see, so instead of going around and calling .xinitrc from .bash_profile 

why not call  startxfce4 directly from .bash_profile

Instead of: 
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi

start as:
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startxfce4; fi

It should work. 

Reply via email to