When I try to gedit some files, then I received these from the terminal window. There is already one post about this: Gtk-WARNING : Calling Inhibit failed
But it is not solved. How can I solve it ?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
IBUS-WARNING **: The owner of /home/myPC/.config/ibus/bus is not root!
gksuinstead of sudo to open the file,
gksudo gedit php.ini
gksu gedit php.ini
The next error
(gedit:12512): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
can be solved by updating
sudo apt-get install gir1.2-gtksource-3.0
There is another way to not deal with such warnings. Use graphical frontend for sudo/su - gksu (in case of gnome) for running GUI programs as root. Gtk-WARNING : Calling Inhibit failed
When starting an application from the command line, you can avoid verbose output in the terminal after starting the application by using the
NOHUP flag before the command and an ampersand following the command.
For example, in this instance you would use:
nohup gedit &
If you need
sudo permission, you should use
sudo -i instead of
sudo to prevent other problems like so:
nohup sudo -i