From b2fd77fe128534adf314ac2916cb9ebd63f522ae Mon Sep 17 00:00:00 2001 From: "[yuri]" <[yuri.kuit@gmail.com]> Date: Tue, 11 Nov 2025 14:55:27 +0100 Subject: [PATCH] bugfix --- v2/debian-full.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/v2/debian-full.sh b/v2/debian-full.sh index 7d9620f..07c2979 100755 --- a/v2/debian-full.sh +++ b/v2/debian-full.sh @@ -135,12 +135,14 @@ if [[ "${DE}" == "xfce" || "${DDE}" == "xfce" ]]; then exit 1 fi - # 2. Aggressively Stop Xfce Processes - say_yellow "Stopping Xfce Panel and Configuration Daemon to prevent settings overwrite..." - pkill xfce4-panel - pkill xfconfd - pkill xfwm4 - sleep 1 + # 2. Aggressively Stop Xfce Processes if XFCE active + if pgrep -x "xfce4-panel" > /dev/null; then + say_yellow "Stopping Xfce Panel and Configuration Daemon to prevent settings overwrite..." + pkill xfce4-panel + pkill xfconfd + pkill xfwm4 + sleep 1 + fi # 3. Copy files from source to destination recursively say_yellow "Copying all files and directories (including hidden ones) from $SOURCE_DIR to $DEST_DIR"