Merge pull request #950 from kitty-panics/master

lib-install.sh: Disallow 'xfce4-panel -r' for the root user
This commit is contained in:
Vince 2023-10-11 14:34:46 +08:00 committed by GitHub
commit e06c5c51ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}