From 00d8434156178e9e02cb733e4abb61d62a0dd913 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 5 Jan 2018 10:01:38 -0800 Subject: [PATCH] Avoid debug message when there is no session manager See #16024 --- src/gtk/utilsgtk.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index 093db50437..7a43641e96 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -254,7 +254,11 @@ static wxString GetSM() if ( !smc_conn ) { - wxLogDebug("Failed to connect to session manager: %s", smerr); + // Don't report error if there is no session manager at all + if (getenv("SESSION_MANAGER")) + { + wxLogDebug("Failed to connect to session manager: %s", smerr); + } return wxEmptyString; }