summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/LinHES-session
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-01-21 21:53:56 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-01-21 21:53:56 (GMT)
commit26cbcc53fd73ce7a6b57ee469358c349a496ed44 (patch)
treea95ca802e2d9c087eecd7284a574e535b2195998 /abs/core/LinHES-system/LinHES-session
parent397b7214417a55bd82f0300810949bf0e509597e (diff)
downloadlinhes_pkgbuild-26cbcc53fd73ce7a6b57ee469358c349a496ed44.zip
linhes_pkgbuild-26cbcc53fd73ce7a6b57ee469358c349a496ed44.tar.gz
linhes_pkgbuild-26cbcc53fd73ce7a6b57ee469358c349a496ed44.tar.bz2
LinHES-system: add notification for add_storage on startup of X11 frontend.
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-xabs/core/LinHES-system/LinHES-session21
1 files changed, 20 insertions, 1 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session
index e4833fa..8b5bac4 100755
--- a/abs/core/LinHES-system/LinHES-session
+++ b/abs/core/LinHES-system/LinHES-session
@@ -47,7 +47,15 @@ export MALLOC_CHECK_=0
}
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 &
+ ps -ef | grep -v grep | grep osd_cat
+ rc=$?
+ while [ $rc = 0 ]
+ do
+ ps -ef | grep -v grep | grep osd_cat
+ rc=$?
+ done
+
+ 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
}
function msg_pyosd(){
@@ -164,6 +172,16 @@ function show_help_tip(){
fi
}
+function notify_scan(){
+ sleep 2
+ if [ -e /tmp/scan_report ]
+ then
+ msg "\n\nNew storage found. \nRun /usr/LH/bin/add_storage.py for details"
+ fi
+
+ }
+
+
function update_apple_trailers(){
#update apple trailers
if [[ x$RunFrontend = x1 && -f ~/.configure ]]
@@ -325,6 +343,7 @@ else
run_tilda
start_screensaver
show_help_tip
+ notify_scan &
update_apple_trailers
first_configure