Use session dbus even for user root

This should save us from having to deal with busconfig, see:

https://github.com/xboxdrv/xboxdrv/issues/42

Fixes #42
This commit is contained in:
Ingo Ruhnke 2015-11-06 17:29:11 +01:00
parent 419ac3586c
commit 575170d891

View file

@ -148,14 +148,7 @@ XboxdrvDaemon::run()
switch(m_opts.dbus)
{
case Options::kDBusAuto:
if (getuid() == 0)
{
dbus_bus_type = DBUS_BUS_SYSTEM;
}
else
{
dbus_bus_type = DBUS_BUS_SESSION;
}
dbus_bus_type = DBUS_BUS_SESSION;
break;
case Options::kDBusSession: