From cfb876e8144102e35646765167612e51311546c7 Mon Sep 17 00:00:00 2001 From: kitty-panics Date: Tue, 10 Oct 2023 22:51:41 -0400 Subject: [PATCH] lib-install.sh: Disallow 'xfce4-panel -r' for the root user --- shell/lib-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/lib-install.sh b/shell/lib-install.sh index e471e95a..0cbbf55c 100755 --- a/shell/lib-install.sh +++ b/shell/lib-install.sh @@ -563,7 +563,7 @@ fix_whiskermenu() { sed -i "s|.*menu-opacity=.*|menu-opacity=95|" "$HOME/.config/xfce4/panel/whiskermenu"*".rc" fi - if (pgrep xfce4-session &> /dev/null); then + if pgrep xfce4-session &> /dev/null && [ "$(id -u)" -ne 0 ]; then xfce4-panel -r fi }