diff options
author | Slávek Banko <[email protected]> | 2016-10-05 20:25:34 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-10-05 20:25:34 +0200 |
commit | 443c910570647f415838e65a1b8add30b00b7dbb (patch) | |
tree | f7b45a5e8cb4aaecf9431fbd95536a4881a3d89a /starttde | |
parent | 3a5dcbbc69fa07b4067b4f82ed0919daf84989dc (diff) | |
download | tdebase-443c910570647f415838e65a1b8add30b00b7dbb.tar.gz tdebase-443c910570647f415838e65a1b8add30b00b7dbb.zip |
Start tde_dbus_hardwarecontrol at background during start a session
Signed-off-by: Slávek Banko <[email protected]>
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 |