On Sun, Feb 16, 2025 at 13:53:21 +0000, Kleene, Steven (kleenesj) wrote:
> echo $DISPLAY -> :0
> xhost -> access control enabled, only authorized clients can connect
> 
> >      echo $XAUTHORITY
> >
> > The last usually points to ~/.Xauthority.
> 
> echo $XAUTHORITY -> ~/.Xauthority

That should not *literally* be ~/.Xauthority of course.

hobbit:~$ declare -p XAUTHORITY
declare -x XAUTHORITY="/home/greg/.Xauthority"

> I do not have ~/.xsession-errors.

Well now, *that* is quite strange.

One of the things that the Debian /etc/X11/Xsession script does is this:


ERRFILE=$HOME/.xsession-errors
[...]
# attempt to create an error file; abort if we cannot
if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] &&
  [ ! -L "$ERRFILE" ]; then
  chmod 600 "$ERRFILE"
elif ERRFILE=$(mktemp 2> /dev/null); then
  if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then
    message "warning: unable to symlink \"$TMPDIR/xsession-$USER\" to" \
             "\"$ERRFILE\"; look for session log/errors in" \
             "\"$TMPDIR/xsession-$USER\"."
  fi
else
  errormsg "unable to create X session log/error file; aborting."
fi


So... I wonder if your HOME directory's permissions are screwed up.
What does ls -ld ~ give you?  Might as well check all of them while
we're at it:  ls -ld / /home ~

Here, I'll start:

hobbit:~$ ls -ld / /home ~
drwxr-xr-x  24 root root  4096 Feb  9 09:03 //
drwxr-xr-x   7 root root  4096 Feb 17  2024 /home/
drwxr-xr-x 231 greg greg 65536 Feb 16 11:15 /home/greg/

Also, is there anything that looks like an xsession-$USER file in /tmp?
Or any regular files in /tmp owned by you that have X session output
in them?

Reply via email to