summaryrefslogtreecommitdiffstats
path: root/starttde
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-10-05 20:25:34 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-10-05 20:25:34 +0200
commit443c910570647f415838e65a1b8add30b00b7dbb (patch)
treef7b45a5e8cb4aaecf9431fbd95536a4881a3d89a /starttde
parent3a5dcbbc69fa07b4067b4f82ed0919daf84989dc (diff)
downloadtdebase-443c910570647f415838e65a1b8add30b00b7dbb.tar.gz
tdebase-443c910570647f415838e65a1b8add30b00b7dbb.zip
Start tde_dbus_hardwarecontrol at background during start a session
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'starttde')
-rwxr-xr-xstarttde23
1 files changed, 23 insertions, 0 deletions
diff --git a/starttde b/starttde
index 7c9d09070..ac87d5333 100755
--- a/starttde
+++ b/starttde
@@ -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