File xfce4-panel-restore-defaults of Package xfce4-panel

#! /bin/bash
if zenity --width=200 --height=200 --question --text="Do you want to restore the Xfce Panel default settings?  (Requires log-out)"; then
 echo "yes";
xfce4-panel --quit
pkill xfconfd
mv ~/.config/xfce4/panel ~/.config/xfce4/panel_$(date +%F-%T).bak
mv ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml_$(date +%F-%T).bak
xfce4-panel &

zenity --width=200 --height=200 --warning --text="Please log out of the system to apply."

xfce4-session-logout
 
else
  echo "no";
fi