From 7230171518a4e3d71ba132a202b9193f46ba430b Mon Sep 17 00:00:00 2001 From: Leo dev Date: Mon, 21 Jul 2025 11:38:09 -0500 Subject: [PATCH] changes --- install.sh | 1 + src/main.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/install.sh b/install.sh index a286ff0..a5c5b75 100644 --- a/install.sh +++ b/install.sh @@ -9,6 +9,7 @@ SERVICE_FILE="$HOME/.config/systemd/user/$SERVICE_NAME.service" CARGO_BIN="$(which cargo)" if [ -d $INSTALL_DIR ]; then + echo "Sentryx already exists, creating a backup then updating it, NOTE: you will need to transfer configs manually" mv $INSTALL_DIR $INSTALL_DIR"-backup" fi diff --git a/src/main.rs b/src/main.rs index 81d638e..71e4a76 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,6 +72,7 @@ async fn get_apps(query: web::Query) -> Result { Ok(units) => Ok(web::Json( units .iter() + .filter(|i| i.ends_with(".service")) .map(|v| match systemctl.status(v) { Ok(unit) => { let a = service::parse_service(unit);