bugfix
This commit is contained in:
@@ -135,15 +135,27 @@ if [[ "${DE}" == "xfce" || "${DDE}" == "xfce" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 2. Copy files from source to destination recursively
|
# 2. Aggressively Stop Xfce Processes
|
||||||
|
say_yellow "Stopping Xfce Panel and Configuration Daemon to prevent settings overwrite..."
|
||||||
|
pkill xfce4-panel
|
||||||
|
pkill xfconfd
|
||||||
|
pkill xfwm4
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
# 3. Copy files from source to destination recursively
|
||||||
say_yellow "Copying all files and directories (including hidden ones) from $SOURCE_DIR to $DEST_DIR"
|
say_yellow "Copying all files and directories (including hidden ones) from $SOURCE_DIR to $DEST_DIR"
|
||||||
shopt -s dotglob
|
shopt -s dotglob
|
||||||
cp -vrf "$SOURCE_DIR"/* "$DEST_DIR"/
|
cp -vrf "$SOURCE_DIR"/* "$DEST_DIR"/
|
||||||
shopt -u dotglob
|
shopt -u dotglob
|
||||||
|
|
||||||
# 3. CRITICAL FIX: Reset the xfconf channel to force the daemon to re-read the file.
|
# 4. Restart Xfce processes to load the new configuration
|
||||||
say_yellow "Forcing Xfconf daemon to reset panel settings and load the new XML..."
|
say_cyan "Restarting Xfce environment components to load the new layout..."
|
||||||
xfconf-query -c xfce4-panel -r /
|
# Restart the Window Manager first
|
||||||
|
xfwm4 --replace & disown
|
||||||
|
# Restart the Panel
|
||||||
|
xfce4-panel & disown
|
||||||
|
say_green "Configurations copied and successfully loaded."
|
||||||
|
say_cyan "Panel and Window Manager restarted."
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user