Ubuntu: Overwrote the desktop folder to a file. How can i reverse it?


by erroneously executing xsane I overwrote my desktop folder with a pdf file.

How can I revert this?

Thank you very much in advance!

Just to clarify: I can still access my desktop from the launcher. I simply cannot add any files or folders to it anymore (and cannot open the desktop folder from my file manager)

screenshot of desktop properties


The desktop configuration is stored in ~/.config/user-dirs.dirs. In your case the line with


is most likely wrong. So move the Desktop to somewhere else and create a new Desktop folder.

$ mv ~/Desktop ~/Desktop_backup.pdf  $ mkdir -p ~/Desktop  

Logout and login again, you should be fine.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »