From f0328d81b26237007252307ffca7054183176f76 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Sat, 17 Feb 2024 14:45:14 +0100 Subject: [PATCH] fix: move session info debug output to `detectEnvironment()` --- hyprfreeze | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hyprfreeze b/hyprfreeze index a19467c..b9ac956 100755 --- a/hyprfreeze +++ b/hyprfreeze @@ -135,14 +135,11 @@ function detectEnvironment() { debugPrint "Could not determine desktop environment via \`loginctl\`, and `$XDG_DESKTOP_SESSION` is not set. Assuming Hyprland." DESKTOP="hyprland" fi + + debugPrint "Desktop: $DESKTOP" } function printInfo() { - debugPrint "Printing environment info..." - echo -e "$(tput bold)Session type:$(tput sgr0) $SESSION" - echo -e "$(tput bold)Desktop:$(tput sgr0) $DESKTOP" - echo "" - debugPrint "Printing process info..." echo -e "$(tput bold)Process tree:$(tput sgr0)" ps -p "$PID" 2>/dev/null && pstree -p "$PID"