diff options
author | James Meyer <james.meyer@operamail.com> | 2012-01-22 01:33:51 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-01-22 01:33:51 (GMT) |
commit | 4be398d0a85b967426525fd9c36ba9bb2595aa67 (patch) | |
tree | 8d63573564f7e7bb65ef870a5ca5fa819f1d4ffc /abs/core/LinHES-system/LinHES-session | |
parent | 08ddf5889e4e0898ef0a17a8fe669800fe2616e1 (diff) | |
download | linhes_pkgbuild-4be398d0a85b967426525fd9c36ba9bb2595aa67.zip linhes_pkgbuild-4be398d0a85b967426525fd9c36ba9bb2595aa67.tar.gz linhes_pkgbuild-4be398d0a85b967426525fd9c36ba9bb2595aa67.tar.bz2 |
linhes-system: linhes-session, add delay_osd function. This is used to stop xosd and xmsg from overlaying messages.
refs #796
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-x | abs/core/LinHES-system/LinHES-session | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session index 8b5bac4..da2f14e 100755 --- a/abs/core/LinHES-system/LinHES-session +++ b/abs/core/LinHES-system/LinHES-session @@ -46,15 +46,27 @@ export MALLOC_CHECK_=0 font="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*" } -function msg_osd(){ - ps -ef | grep -v grep | grep osd_cat +function delay_osd(){ + if [ x$STARTUP_STYLE = xmythvantage ] + then + cmd="ps -ef | grep -v grep | grep xmsg.py" + else + cmd="ps -ef | grep -v grep | grep osd_cat" + fi + + eval $cmd + rc=$? while [ $rc = 0 ] do - ps -ef | grep -v grep | grep osd_cat + eval $cmd rc=$? done + + } + +function msg_osd(){ echo -e "$1" | osd_cat --pos=middle --align=center --offset=200 --delay=5 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font } @@ -173,10 +185,10 @@ function show_help_tip(){ } function notify_scan(){ - sleep 2 + delay_osd if [ -e /tmp/scan_report ] then - msg "\n\nNew storage found. \nRun /usr/LH/bin/add_storage.py for details" + msg "\nNew storage found. \nRun add_storage.py for details" fi } |