From ba78072c0c563bddb3d964074aa2549e3542623b Mon Sep 17 00:00:00 2001 From: Fabiano Matos Date: Sat, 14 Dec 2024 15:25:29 -0300 Subject: [PATCH] update 'init' - fix notification on requirements error --- init | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/init b/init index 65f0518..ea25ec2 100644 --- a/init +++ b/init @@ -6,10 +6,10 @@ # Created: Thursday, 2021/05/20 - 13:18:34 # Author.: @fbnmtz, fgm (fabiano.matoz@gmail.com) # ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~ -# Last Modified: Saturday, 2024/12/14 - 12:15:08 +# Last Modified: Saturday, 2024/12/14 - 15:30:33 # Modified By..: @fbnmtz, (fabiano.matoz@gmail.com) # ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~ -# Version: 0.1.18.701 +# Version: 0.1.18.707 # ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~ # Description: # > @@ -202,7 +202,9 @@ xrequirements(){ local tools=$@ local error_msg="requirements error! please install missing tools: '${tools//\:/\' or \'}'." echo -e "$error_msg" - notify-send "$0" "$error_msg" + if source "$xSHELL_PATH/system" 2> /dev/null; then + xsys.notify "$APP" "$error_msg" + fi exit 10 } # check if a package exists on the system