diff options
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-x | abs/core/LinHES-system/LinHES-session | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session index ac90eff..902962f 100755 --- a/abs/core/LinHES-system/LinHES-session +++ b/abs/core/LinHES-system/LinHES-session @@ -264,6 +264,7 @@ function first_configure_mv(){ then /usr/MythVantage/bin/backend_control.sh stop BE 127.0.0.1 msg "MythTV setup is starting.\nPlease follow the steps for adding tuners and guide data." + run_wmctrl & /usr/bin/taskset -c 0 /usr/bin/mythtv-setup /usr/MythVantage/bin/backend_control.sh start BE 127.0.0.1 fi @@ -303,6 +304,28 @@ function start_myth() { } +function run_wmctrl(){ + done="False" + for i in `seq 60` + do + for name in "MythTV Frontend" "MythTV Setup" "mythwelcome" + do + xwininfo -name "$name" + rc=$? + if [ $rc = 0 ] + then + wmctrl -r "$name" -b remove,fullscreen + done="True" + fi + if [ $done = "True" ] + then + break + fi + done + sleep 5 + done + +} function run_myth(){ if [ -f /tmp/nomfe ] @@ -321,6 +344,8 @@ function run_myth(){ if [ x$STARTUP_STYLE = xenhanced ] then + + run_wmctrl & $STARTCMD 2>&1 else $STARTCMD 2>&1 & @@ -379,5 +404,6 @@ then fi +wmctrl -r "MythTV Frontend" -b remove,fullscreen |