The problem only occurs using Wayland, using Xorg it works normally.
That is why it works by default (Xorg) in 18.04.
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
sudo nautilus or gedit not working
To manage notifications about this bug go to:
ubuntu-bugs mailing list