Skip to content

Commit

Permalink
Use session dbus even for user root
Browse files Browse the repository at this point in the history
This should save us from having to deal with busconfig, see:

#42

Fixes #42
  • Loading branch information
Grumbel committed Nov 6, 2015
1 parent acd22b7 commit b1195be
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/xboxdrv_daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,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:
Expand Down

0 comments on commit b1195be

Please sign in to comment.