My problem with the Gedit text editor

Hello,

I have an issue with the Gedit text editor. I downloaded and installed a set of plugins using the Synaptic and apt package managers, and I activated them without encountering any errors. The problem arises when I access the system directory with root privileges (sudo nautilus), navigate to the themes folder, and open any gtk.css file. The plugins do not load; for example, the color picker does not work, and none of the other plugins function. However, when I open any gtk.css file in the home directory without root privileges, all plugins load successfully. Additionally, when I run Gedit in the terminal in root mode (sudo gedit) and only open the application window, the plugins do not load. But when I simply type gedit in the terminal and open the application window, all plugins load and work correctly. What is the problem?

Hmm ... when the Plugin's maybe saved locally they don't run with sudo I could imagine.

Oh, and to be clear: You use the APT Version of gedit, not the Flatpak Version, yes?

I think this is by design. I've heard about this but never looked much into it, that you shouldn't run graphical applications as root:

https://wiki.archlinux.org/title/Running_GUI_applications_as_root

Gedit is a Gnome application and it uses Dconf to store information such as active plugins internally. I guess that it knows that root is not supposed to access this.

Last reply in this thread has a possible workaround:

Yes
I use the APT Version of gedit

Everything that wasn't working for me in Zorin OS 17.2 actually worked in Linux Mint 22.
Do both distributions use the same Ubuntu version?
What could be the reason for the difference?

Mint uses Cinnamon DE not Gnome. Gnome devs don't like users to modify what they think is the best look already. That is why I prefer Plasma.

1 Like