From b11eed8f567acae90dc6615063e2728d9e66efb4 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Mon, 13 Feb 2023 21:04:29 -0500
Subject: linhes-system: lh_system_start.sh: add lh_startuserapps hook

---
 linhes/linhes-system/PKGBUILD           |  4 ++--
 linhes/linhes-system/lh_system_start.sh | 11 ++++++++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD
index 0ec2743..2ab7f55 100755
--- a/linhes/linhes-system/PKGBUILD
+++ b/linhes/linhes-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=linhes-system
 pkgver=9.0.0
-pkgrel=44
+pkgrel=45
 arch=('x86_64')
 #install=$pkgname.install
 pkgdesc="Everything that makes LinHES a system"
@@ -31,7 +31,7 @@ sha256sums=('525bfe29b63d3ec5a17a32fa29745e24070020490c3f5b6dd6b03250348fb324'
             'c7a2b2de44645e3a905b39d7411e5b8b27b60bd2944533fd4655c3b175755da1'
             'ae34515e144830f424d3bd3f6b1b446892d62beed20bca6f0fb19b0bbb779f27'
             '5e6d128f879b0fe7c1a190cccd75d4e5d00afc161f3bc9e92ffa2d87242cc9df'
-            '644414148e514e4a56d68959cb427ddde4129a961cbf09cd1a0a39129d58a0b1'
+            'd3ed5be75717b5c9e867b4303949295e4e9b5b7c8b1aaccd82d9caa575d810e5'
             '6d4fb0ed1a5ed961b3a3884dce093118e50c2981a9cd5837d20abc5a6d4fd8aa'
             '87875d9e5f5ce18208f419698ce69b6bcbcd08955a57a4a13940e715af58b787'
             '3b3d774701ee52054f6592258b98b9f18c3f7f9a93982ef07c7a3c7cf9445b82'
diff --git a/linhes/linhes-system/lh_system_start.sh b/linhes/linhes-system/lh_system_start.sh
index a4cee16..36f173c 100755
--- a/linhes/linhes-system/lh_system_start.sh
+++ b/linhes/linhes-system/lh_system_start.sh
@@ -140,9 +140,17 @@ function first_configure(){
     fi
 }
 
+function start_user_apps() {
+    if [ -f ~/.config/lh_startuserapps ]; then
+        msg "Starting User Apps..."
+        source ~/.config/lh_startuserapps
+    fi
+}
+
 function start_myth() {
     STARTCMD="/usr/bin/mythfrontend --syslog local6"
-    if [ ! -f ~/.dontrunmythfrontend ]; then
+    if [ ! -f ~/.config/lh_dontrunmythfrontend ]; then
+        msg "Starting MythFrontend..."
         $STARTCMD 2>&1 &
     fi
 }
@@ -152,4 +160,5 @@ check_installer_user
 first_configure
 /usr/bin/enableIRWake.sh &
 storage_scan
+start_user_apps
 start_myth
-- 
cgit v0.12

