In Ubuntu 17.10, when I log in using Wayland and try to run a GUI app using root access it says
unable to copy the user's xauthorization file
I tried
sudo chown sharif:sharif ~/.Xauthority
but the result was
chown: cannot access '/home/sharif/.Xauthority': No such file or directory
But in Xorg those apps run well.