From fe40ff5fed0e3b7e1761686831ff9ce0cf6c6912 Mon Sep 17 00:00:00 2001 From: topfs2 Date: Mon, 10 May 2010 17:42:43 +0000 Subject: [PATCH] Prefer UPower over DeviceKit.Power git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29992 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- xbmc/PowerManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xbmc/PowerManager.cpp b/xbmc/PowerManager.cpp index b61f804be77a4..a04f54a5a9530 100644 --- a/xbmc/PowerManager.cpp +++ b/xbmc/PowerManager.cpp @@ -75,10 +75,10 @@ void CPowerManager::Initialize() #ifdef __APPLE__ m_instance = new CCocoaPowerSyscall(); #elif defined(_LINUX) && defined(HAS_DBUS) - if (CConsoleDeviceKitPowerSyscall::HasDeviceConsoleKit()) - m_instance = new CConsoleDeviceKitPowerSyscall(); - else if (CConsoleUPowerSyscall::HasDeviceConsoleKit()) + if (CConsoleUPowerSyscall::HasDeviceConsoleKit()) m_instance = new CConsoleUPowerSyscall(); + else if (CConsoleDeviceKitPowerSyscall::HasDeviceConsoleKit()) + m_instance = new CConsoleDeviceKitPowerSyscall(); #ifdef HAS_HAL else m_instance = new CHALPowerSyscall();