Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I reset my XFCE panels to the default settings that xubuntu uses?

share|improve this question

2 Answers 2

up vote 27 down vote accepted

XFCE stores it's configuration for the running session in xfconfd. Feel free to back up the files you're going to delete first.

  1. Shut down the panel first, xfce4-panel --quit
  2. Kill the xfce4 configuration daemon, pkill xfconfd
  3. First delete settings for the panel, rm -rf ~/.config/xfce4/panel
  4. Clear out the settings for xfconfd, rm -rf ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
  5. Restart the panel, run xfce4-panel. This will respawn xfconfd automatically. Note if you need or want to restart xfconfd manually know that on my installation it was in /usr/lib/x86_64-linux-gnu/xfce4/xfconf/xfconfd which was outside of $PATH.

This clears it for the running session, regenerates the files, and sets up the default for future sessions.

Want it in one line?

xfce4-panel --quit ; pkill xfconfd ; rm -rf ~/.config/xfce4/panel ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml ; xfce4-panel;
share|improve this answer
2  
I suggest using the mv command or at least suggesting to copy the folder elsewhere before deleting anything. –  Mateo_ Nov 30 '12 at 22:05
    
I wouldn't suggest that. This is a simple reset to defaults. In no paradigm does a Reset to Defaults → Apply provide for an Undo. I take it the users understand this, as I could not think of anything that would lead them to expect anything else. –  Evan Carroll Nov 30 '12 at 23:14
1  
except that using rm -rf can be dangerous if you miss-type, If you accidentally move something else, you can simply move it back. –  Mateo_ Nov 30 '12 at 23:51
1  
THANK YOU! my panel disappeared and I was having trouble finding a way to restore it with my old (backed up) settings without logging out, this worked! –  weronika Dec 20 '12 at 5:22
1  
@EvanCarroll I did back when I made that comment - apparently it got some downvotes as well. –  weronika Mar 26 '13 at 21:04

The only thing I can say that would make it easier to just run:

rm -r ~/.config/xfce4

Then simply log out and back in. This will just reset xfce4 back to default. I'd recommend avoiding the -f flag unless necessary especially if you are using the sudo command which is not an issue here but anyway. Using only the minimal force necessary is always a good idea.

This also limits the commands a user has to enter, you can also open up your file manager and select view hidden files and go into the .config folder and right click and delete the xfce4 folder and then log out and back in. No commands necessary.

share|improve this answer
    
You could just as easily do it in one line, pkill xfconfd; rm -rf ~/.config/xfce4/panel ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml; xfec4-panel, which would stop you from having to logout, and not nuke other potentially useful settings in ~/.config/xfce4. –  Evan Carroll Dec 23 '13 at 18:18

protected by Community Jan 22 at 1:23

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.