When running gedit with sudo, editing and saving a file causes the following error to appear (twice). Note that the first time it appears is when the file is edited in any way - even just pressing the space bar. Then it happens again when saving.
(gedit:4063): 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:4063): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
This did not always occur, but started recently. It seems to be a non-fatal error. Can it be corrected?
I am using 14.04 LTS. I use Unity but supplement it with Docky and Classic Menu Indicator Applet.
When running sudo nautilus, a similar error occurs:
(nautilus:4604): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.
Again, this did not occur until recently, so I believe the problems are related.
gksudo nautilus
orsudo -H nautilus
orsudo -i nautilus
instead. – Liso Sep 10 '15 at 02:09