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 Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/1845892 Title: gedit crashes system when launched from terminal as root Status in gedit package in Ubuntu: Incomplete Bug description: This happens whenever I try to edit a file (for example /etc/apt/sources.list) or open gedit with root privileges. Application window opens, characters are replaced by squares, and becomes impossible to drag or resize it as my system completely stalls. Also if firefox is open, it also becomes unresponsive and crashes. This screenshot summarises what i have been experiencing so far: https://i.imgur.com/8R6vZhE.jpg Additionally, it also happens with nautilus. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: gedit 3.28.1-1ubuntu1.2 ProcVersionSignature: Ubuntu 4.15.0-65.74-generic 4.15.18 Uname: Linux 4.15.0-65-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.7 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Sun Sep 29 19:34:14 2019 InstallationDate: Installed on 2016-11-14 (1048 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) SourcePackage: gedit UpgradeStatus: Upgraded to bionic on 2018-08-21 (403 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1845892/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp