After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 734140 - Gnome apps spam stderr with warnings if Gnome Session Manager not found. No way to turn off warnings.
Gnome apps spam stderr with warnings if Gnome Session Manager not found. No w...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-08-01 20:26 UTC by Robert Clausecker
Modified: 2014-11-03 05:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Clausecker 2014-08-01 20:26:05 UTC
I'm running various Gnome applications from an xterm in a desktop environment that intentionally doesn't launch any Gnome daemons. Some applications spam stderr with messages like this:

(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

Some applications spam these warnings so often (e.g. gedit does this every time you press enter) that the terminal is rendered unusable. I have failed to found a way to turn off these warnings. As a temporary workaround it is possible to redirect stderr to /dev/null, but this is not a good workaround as it has to be applied to every application individually every time the application starts. Also, these warnings are useless and annoying to me as I know that there is no Session Manager. Also, the functionality of the Gnome applications I use is not hindered by the fact that no Gnome Session Manager exists.

Please:

1. If a way to turn off these warnings (e.g. via configuration or environment) exists, please tell me how.
2. If no such way exists, please implement such a way.
3. Also change the code that displays these warnings so it only displays every kind of warning only once during the lifetime of a Gnome program — the Gnome Session Manager is not going to magically appear after a warning was issued.