I have not worked out if that is the reason....but my work around works so here it is
firstly run....edit correction
Code: Select all
env | grep 1000
so my work around is an executable such that
Code: Select all
cat /usr/local/bin/run-dir
#!/bin/sh
DIR=/run/user/1000
if [ ! -d $DIR ] ; then mkdir -p $DIR && echo "not found so creating"
else echo "found"
fi
chmod 0700 $DIR
chown -R gor:gor $DIR
ls -al /run/user
2) if you missing the runtime dir then run
Code: Select all
sudo run-dir
Code: Select all
sudo run-dir
not found so creating
total 0
drwxr-xr-x 3 root root 60 Sep 25 12:30 .
drwxr-xr-x 22 root root 860 Sep 25 12:16 ..
drwx------ 2 gor gor 40 Sep 25 12:30 1000
Code: Select all
export XDG_RUNTIME_DIR=/run/user/1000
env | grep 1000
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
XDG_RUNTIME_DIR=/run/user/1000
Hope that helps someone if they are playing with 2 open displays at once