Avoid debug message when there is no session manager

See #16024
This commit is contained in:
Paul Cornett
2018-01-05 10:01:38 -08:00
parent a2ad7f9bf6
commit 00d8434156

View File

@@ -254,7 +254,11 @@ static wxString GetSM()
if ( !smc_conn ) 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; return wxEmptyString;
} }