git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45785
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !dpy )
return wxEmptyString;
if ( !dpy )
return wxEmptyString;
char *client_id;
SmcConn smc_conn = SmcOpenConnection(NULL, NULL,
999, 999,
0 /* mask */, NULL /* callbacks */,
NULL, &client_id,
char *client_id;
SmcConn smc_conn = SmcOpenConnection(NULL, NULL,
999, 999,
0 /* mask */, NULL /* callbacks */,
NULL, &client_id,
+ WXSIZEOF(smerr), smerr);
+ {
+ wxLogWarning(_("Failed to connect to session manager: %s"), smerr);
char *vendor = SmcVendor(smc_conn);
wxString ret = wxString::FromAscii( vendor );
char *vendor = SmcVendor(smc_conn);
wxString ret = wxString::FromAscii( vendor );
wxString wxGUIAppTraits::GetDesktopEnvironment() const
{
#if wxUSE_DETECT_SM
wxString wxGUIAppTraits::GetDesktopEnvironment() const
{
#if wxUSE_DETECT_SM
- const wxString SM = GetSM();
+ static const wxString SM = GetSM();
if (SM == wxT("GnomeSM"))
return wxT("GNOME");
if (SM == wxT("GnomeSM"))
return wxT("GNOME");