[xboxdrv] 65/78: Use session dbus even for user root
Andrey Rahmatullin
wrar-guest at moszumanska.debian.org
Sun Feb 21 17:55:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
wrar-guest pushed a commit to branch master
in repository xboxdrv.
commit 575170d891e5065425f17d03f7997c5f2db2fb2d
Author: Ingo Ruhnke <grumbel at gmail.com>
Date: Fri Nov 6 17:29:11 2015 +0100
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
---
src/xboxdrv_daemon.cpp | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/src/xboxdrv_daemon.cpp b/src/xboxdrv_daemon.cpp
index 27bd68c..d6dbaea 100644
--- a/src/xboxdrv_daemon.cpp
+++ b/src/xboxdrv_daemon.cpp
@@ -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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/xboxdrv.git
More information about the Pkg-games-commits
mailing list