When using sudo
powers and calling gedit
the top level menu with File Edit View Search Tools Documents Help
is missing.
If I create user ID root and sign in once and call gedit
will it create the necessary user configuration files that might fix this?
Will this also make the annoying error messages go away whenever I use sudo
, gksu
or pkexec
as a regular user with elevated privileges togedit
?
Will there be other benefits with Nautilus and other Gnome derivative Ubuntu applications?
NOTE: by sudo
powers you can google pkexec gedit
3.5k hits, gksu gedit
40k hits or sudo gedit
500k hits. I'm in the minority using the first method but I believe it will become the standard in Ubuntu 17.04.
June 12, 2017 Update Here are a list of errors you get when using pkexec gedit
:
(gedit:13003): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (gedit:13003): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported
** (gedit:13003): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported
** (gedit:13003): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported
On this bug report there is a commitment to fix these distracting messages as of June 5, 2017. No indication is given for when the fix will be upstream nor if the functionality will be implemented or the error messages will simply disappear.
Note the bug report was filed over a year ago and over that time it only effects 18 people.
sudo
.root
to sign on as root. Also under/root/.local/share...
I'm hoping gedit will create the missing user configuration files. To callgedit
on system files I usepkexec
personally but many usegksu
which is being deprecated. Both qualify assudo
powers in my mind but if you like I'll reword the question.