I am running the awesome window manager on trusty after having upgraded from raring. My desktop environment intentionally does not have all the Gnome / Freedesktop daemons running — I don't want them.
When I execute gedit
from a terminal like this:
gedit file
It outputs messages like this all over my terminal whenever I hit enter or save or on various other occasions:
(gedit:5700): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
I understand the meaning of this warning and I have decided that it doesn't matter to me.
How can I turn off this kind of warning? By "turn off", I don't mean any of these or similar workarounds:
- piping the output of gedit into
/dev/null
- writing a wrapper script that pipes the output of gedit into
/dev/null
- creating an alias that pipes the output of gedit into
/dev/null
These workarounds are not acceptable as they have to be applied individually to each Gnome application — gedit is not the only one that likes to mess up the terminal.