I have upgraded 14.04 to 16.04 . Now I am trying to open the gedit from terminal by passing the command:
sudo gedit /some/where/file.txt
but it is throwing an error stating that:
(gedit:2090): Gtk-WARNING : Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files**
However, it is opening the file. When I try to save any modification then it is showing this error after saving the file:
(gedit:2090): WARNING : Set document metadata failed: Setting attribute metadata::gedit-position not supported
I am not getting why this is happening in 16.04 only; it was not on 14.04.