Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

libxbmc: only setup the windowmanager if we're going to use it

  • Loading branch information...
commit de1d1d9c868579a1c1450cefdd41d6ad41c94d4a 1 parent 3edc1af
theuni authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 xbmc/Application.cpp
View
11 xbmc/Application.cpp
@@ -1153,6 +1153,8 @@ bool CApplication::Initialize()
// Init DPMS, before creating the corresponding setting control.
m_dpms = new DPMSSupport();
+ if (g_windowManager.Initialized())
+ {
g_guiSettings.GetSetting("powermanagement.displaysoff")->SetVisible(m_dpms->IsSupported());
g_windowManager.Add(new CGUIWindowHome); // window id = 0
@@ -1284,6 +1286,15 @@ bool CApplication::Initialize()
g_windowManager.ActivateWindow(g_SkinInfo->GetFirstWindow());
}
+ }
+ else //No GUI Created
+ {
+#ifdef HAS_JSONRPC
+ CJSONRPC::Initialize();
+#endif
+ ADDON::CAddonMgr::Get().StartServices(false);
+ }
+
g_sysinfo.Refresh();
CLog::Log(LOGINFO, "removing tempfiles");
Please sign in to comment.
Something went wrong with that request. Please try again.