Skip to content

Commit

Permalink
Merge pull request #950 from kitty-panics/master
Browse files Browse the repository at this point in the history
lib-install.sh: Disallow 'xfce4-panel -r' for the root user
  • Loading branch information
vinceliuice authored Oct 11, 2023
2 parents f82220e + cfb876e commit e06c5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/lib-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e06c5c5

Please sign in to comment.