I have upgraded to 18.04 and find that if I attempt to launch gedit from a terminal, I only get a small window showing part of the screen, which is a bit like a screenshot. I can close the application again once I find the window and the close icon.
If I prefix the command with sudo it's OK. I want to continue to start ubuntu with the default xorg, if I start with wayland, then I don't need the 'sudo' prefix. Under wayland, starting with sudo gedit produces the same error as xorg without the 'sudo'.
I am asking if there is any known workaround for this mildly irritating bug?
EDIT
It's become more annoying, as when in File Manager and I click on a file it opens gedit with the same error. I did change the owner with Norbert's suggestion but to no effect.
I've now installed Leafpad and set it to be the default application and that works OK but I'd rather go back to having gedit.
~/.config
folder withsudo chown -R $USER:$USER ~/.config
and report back. – N0rbert Aug 17 '18 at 15:02sudo GUI-program
. It can cause the system to overwrite the configuration files for your regular user ID with root's configuration and set ownership and permissions to fit root and lock out your regular user ID.' – sudodus Aug 23 '18 at 13:05