Xfce4 panel is broken, how to restore it to the default panel without exiting current desktop?

Issue:

Xfce4 panel is broken.

d9ac906fc8cd45f7b1bd4414ac7a0653.png

if you selected the 'One empyt panel' option, then your desktop will look like below,

d7a6a4b7862947e19ebd47c39e0ad9e9.png

c79c2317133d40aca1b5b76bfa9b590b.png

open a terminal, then minimize the terminal, and it is gone nowhere,

f5e1fe8e84f3492eb74fcde8c11e866d.png

So, how to restore xfce4-panel to the default?

Resolution:

1. bakcup your xfce4 config

cp -r ~/.config/xfce4 ~/.config/xfce4_bak

2. kill Xfce configuration daemon,

pkill xfconfd

3. delete existing config,

rm -rf ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

4. restart xfce4-panel

nohup xfce4-panel -r &

5. then select 'Use default config'

d9ac906fc8cd45f7b1bd4414ac7a0653.png

Done.