On 8/17/23 12:10, l...@ena.re wrote:
Hey,
I am new to OpenBSD. I run 7.3-stable.
My understanding after reading X(7), Xsecurity(7) and xenodm(1) is that
one can set the environment variable XAUTHORITY to specify the location
of the file, which by default, is located at $HOME/.Xauthority.>
In $HOME/.profile I set XAUTHORITY=$HOME/.config/X/Xauthority and moved
.Xauthority to $HOME/.config/X/Xauthority.
However, now, when I boot and X is started, I see the cursor in the
middle of the screen for a moment and then X seems to crash and start
again. I am stuck in this loop.
Why do I not witness the behaviour I expected? Should I have set the
environment variable in $HOME/.xsession?
if you want my opinion of what you should do, i'd argue you should leave
it alone.
More importantly, how do I exit this loop and revert the changes?
What isn't clear is when you get the loop. Are you logging in in text
mode then starting X as you, and getting this loop? or is X starting
on boot, and you are getting that loop? If X is starting on boot and
looping, I think you have another problem, because a file in your
home directory isn't being referenced until you log in.
But, to answer your question about how to fix it...depending on what
is going on, I'd start with CTRL-ALT-F1 to get to the command line,
log in, undo.
You might be able to hit CTRL-ALT-BackSpace to shut down X, but if
you are running xenocara, that will just take you back to the login
prompt. But NOW you might be able to CTRL-ALT-F1 back to the CLI.
WORST CASE, reboot the machine, and boot in single user mode.
# mount -a
# export TERM=vt220
...fix it
Nick.