bugfix
This commit is contained in:
@@ -149,13 +149,34 @@ if [[ "${DE}" == "xfce" || "${DDE}" == "xfce" ]]; then
|
||||
shopt -u dotglob
|
||||
|
||||
# 4. Restart Xfce processes to load the new configuration
|
||||
# We check for a running 'xfce4-panel' process to determine if we are in an Xfce session.
|
||||
if pgrep -x "xfce4-panel" > /dev/null; then
|
||||
say_bold "Xfce Panel detected. Applying configuration changes immediately."
|
||||
|
||||
# Aggressively stop Xfce processes to prevent the old settings from being saved.
|
||||
say_yellow "Stopping Xfce Panel and Configuration Daemon to prevent settings overwrite..."
|
||||
pkill xfce4-panel
|
||||
pkill xfconfd
|
||||
# Optionally stop the window manager, to ensure a full refresh
|
||||
pkill xfwm4
|
||||
sleep 1
|
||||
|
||||
# Restart Xfce processes to load the new configuration from the copied files
|
||||
say_cyan "Restarting Xfce environment components to load the new layout..."
|
||||
|
||||
# Restart the Window Manager first
|
||||
xfwm4 --replace & disown
|
||||
|
||||
# Restart the Panel
|
||||
xfce4-panel & disown
|
||||
say_green "Configurations copied and successfully loaded."
|
||||
|
||||
say_green "Xfce configuration successfully loaded and applied."
|
||||
say_cyan "Panel and Window Manager restarted."
|
||||
else
|
||||
say_cyan "Xfce Panel process not found. Configurations copied to $HOME."
|
||||
say_cyan "Please log out and log back in to fully apply the Xfce configuration changes."
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user