Guilherme; Hey - The fact of the matter is that "sudo" is no longer the means to enable 'root's" use of GUI applications; as gksu is depreciated. Not a miss- configuration of the system either.
Preferable is "admin://" - though there are 2 other alternates that I am aware of. If you do, as I, prefer "sudo" then try as sudo -H gedit etc/apt/sources to start a GUI App from terminal. Else there is also "pkexec". To do so you may have to install the admin package: sudo apt install nautilus-admin. then: pkexec gedit Please try these alternatives and advise on the result. Still - look at this as a miss use of privileges rather than a bug until proven otherwise. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/1845892 Title: gedit crashes system when launched from terminal as root To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1845892/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs