diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-10-05 20:25:34 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-10-05 20:25:47 +0200 |
commit | fb2f0303b68e9ca7c5caac968ec104f3cb891601 (patch) | |
tree | 3bdfddd09955ae504c8197c2b85bb0b6a31122f6 /starttde | |
parent | 89aa5220b6f7c4c5d43c3fdbd57d5a4c4b020763 (diff) | |
download | tdebase-fb2f0303b68e9ca7c5caac968ec104f3cb891601.tar.gz tdebase-fb2f0303b68e9ca7c5caac968ec104f3cb891601.zip |
Start tde_dbus_hardwarecontrol at background during start a session
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 443c910570647f415838e65a1b8add30b00b7dbb)
Diffstat (limited to 'starttde')
-rwxr-xr-x | starttde | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -640,6 +640,29 @@ $TDEDIR/bin/dcopserver_shutdown echo "[starttde] Starting Trinity..." 1>&2 +# Start tde_dbus_hardwarecontrol at background +if [ -x $TDEDIR/bin/tde_dbus_hardwarecontrol ]; then + ( + TDE_DBUS=$(dbus-send --system --print-reply --dest=org.freedesktop.DBus \ + /org/freedesktop/DBus org.freedesktop.DBus.StartServiceByName \ + string:org.trinitydesktop.hardwarecontrol \ + uint32:0 | \ + sed -n "s| *uint32 \([0-9]*\).*|\1|p") + case "$TDE_DBUS" in + 2) + TDE_DBUS_STATE="running" + ;; + 1) + TDE_DBUS_STATE="started" + ;; + *) + TDE_DBUS_STATE="not started" + ;; + esac + echo "[starttde] Trinity hardware control dbus daemon $TDE_DBUS_STATE." 1>&2 + )& +fi + # Detect any running Xorg composition managers. $TDEDIR/bin/kdetcompmgr |