From 7857cbdcfd42ea2c8335b4c2c1d35083ee1e5a00 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 18 Jan 2023 17:24:28 -0500
Subject: linhes-system: lh_system_start.sh: add flatpak for plex htpc

---
 linhes/linhes-system/PKGBUILD           | 4 ++--
 linhes/linhes-system/lh_system_start.sh | 9 +++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD
index ef5cda1..efa028f 100755
--- a/linhes/linhes-system/PKGBUILD
+++ b/linhes/linhes-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=linhes-system
 pkgver=9.0.0
-pkgrel=25
+pkgrel=26
 arch=('x86_64')
 #install=$pkgname.install
 pkgdesc="Everything that makes LinHES a system"
@@ -29,7 +29,7 @@ sha256sums=('7f91d2afcb76e8e9063c6bbe05f5c3d134a6f67541aead8894d342c32d34ad98'
             '11168c9cd3b117decaab6bc665c183b4aab917cf0a976bce4c1b5e4686a27bc9'
             'ae34515e144830f424d3bd3f6b1b446892d62beed20bca6f0fb19b0bbb779f27'
             '23358a7bff4968eccd469613b81b1415c2ae0ebe77f14f74426697333e4d88d7'
-            '5bed6be9b84c71df297739357d4af16b0674a4bd6dfc263d94f08d1eb982dd74'
+            '19535aaeeb3e0118bddd9c0efb6b974145ee99a4ed8dc33ea888da5eb28e57fd'
             '6d4fb0ed1a5ed961b3a3884dce093118e50c2981a9cd5837d20abc5a6d4fd8aa'
             '87875d9e5f5ce18208f419698ce69b6bcbcd08955a57a4a13940e715af58b787'
             '91bdec992bb2c933e15625c181f2195c402060b879168ebf35944cb064c904b9'
diff --git a/linhes/linhes-system/lh_system_start.sh b/linhes/linhes-system/lh_system_start.sh
index 995ccde..b993be8 100755
--- a/linhes/linhes-system/lh_system_start.sh
+++ b/linhes/linhes-system/lh_system_start.sh
@@ -6,7 +6,7 @@
 HOSTNAME=`/usr/bin/hostnamectl hostname`
 
 function msg(){
-    /usr/bin/lh_notify-send --app-name="LinHES" --icon=dialog-information "$1" "$2"
+    /usr/bin/lh_notify-send --app-name="LinHES" --icon=dialog-information "$1" "$2" "$3"
 }
 
 function check_installer_user(){
@@ -64,11 +64,12 @@ function storage_scan(){
 
 function install_lh_apps(){
     #install programs that are not needed on the iso
-    msg "Installing apps. This could take a few minutes."
+    msg "--expire-time=30000" "Installing apps. This could take a few minutes."
     sudo pacman -Syyy --noconfirm archlinux-keyring
-    sudo pacman -Syyy --noconfirm firefox glances mythtv mythplugins-mytharchive mythplugins-mythmusic mythplugins-mythweb ncdu x11vnc
+    sudo pacman -Syyy --noconfirm flatpak firefox glances mythtv mythplugins-mytharchive mythplugins-mythmusic mythplugins-mythweb ncdu x11vnc
     status=$?
-    [ $status -eq 1 ] && msg "Could not install apps. Check internet connection." && exit 1
+    [ $status -eq 1 ] && msg "Could not install apps. Check internet connection. Cancelling Setup." && exit 1
+    flatpak install tv.plex.PlexHTPC
 }
 
 function sql_setup(){
-- 
cgit v0.12

