Skip to content

Commit

Permalink
Prefer UPower over DeviceKit.Power
Browse files Browse the repository at this point in the history
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29992 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
topfs2 committed May 10, 2010
1 parent 4c26740 commit fe40ff5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/PowerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fe40ff5

Please sign in to comment.