From 26cbcc53fd73ce7a6b57ee469358c349a496ed44 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sat, 21 Jan 2012 15:53:56 -0600 Subject: LinHES-system: add notification for add_storage on startup of X11 frontend. --- abs/core/LinHES-system/LinHES-session | 21 ++++++++++++++++++++- abs/core/LinHES-system/PKGBUILD | 4 ++-- 2 files changed, 22 insertions(+), 3 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 diff --git a/abs/core/LinHES-system/PKGBUILD b/abs/core/LinHES-system/PKGBUILD index 439ff14..b1f0ea5 100644 --- a/abs/core/LinHES-system/PKGBUILD +++ b/abs/core/LinHES-system/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-system pkgver=2 -pkgrel=31 +pkgrel=32 arch=('i686') MVDIR=$startdir/pkg/usr/LH BINDIR=$startdir/pkg/usr/bin @@ -48,7 +48,7 @@ build() { mkdir $startdir/pkg/etc/logrotate.d cp $startdir/myth_mtc.lr $startdir/pkg/etc/logrotate.d } -md5sums=('71a1fc9b01476b0b2c30596107eeff75' +md5sums=('a0fc7ae1a80b151ab9d247b84c1272a6' '5881bdb43d578ec3a79d1f77ea58a3db' 'a875ee97f86e46f34a741c2bc455f894' '76b2637cac0452b3acdbeeb4e8a5474b' -- cgit v0.12