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?
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.