bugfix
This commit is contained in:
@@ -149,13 +149,34 @@ if [[ "${DE}" == "xfce" || "${DDE}" == "xfce" ]]; then
|
|||||||
shopt -u dotglob
|
shopt -u dotglob
|
||||||
|
|
||||||
# 4. Restart Xfce processes to load the new configuration
|
# 4. Restart Xfce processes to load the new configuration
|
||||||
say_cyan "Restarting Xfce environment components to load the new layout..."
|
# We check for a running 'xfce4-panel' process to determine if we are in an Xfce session.
|
||||||
# Restart the Window Manager first
|
if pgrep -x "xfce4-panel" > /dev/null; then
|
||||||
xfwm4 --replace & disown
|
say_bold "Xfce Panel detected. Applying configuration changes immediately."
|
||||||
# Restart the Panel
|
|
||||||
xfce4-panel & disown
|
# Aggressively stop Xfce processes to prevent the old settings from being saved.
|
||||||
say_green "Configurations copied and successfully loaded."
|
say_yellow "Stopping Xfce Panel and Configuration Daemon to prevent settings overwrite..."
|
||||||
say_cyan "Panel and Window Manager restarted."
|
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 "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
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user