User moved "well known" user directories to trash - How to recover?

When working with Tumbleweed / KDE Plasma one user opened dolphin, selected the “well known” user directories and moved them to trash, which generated some embarrassing effects.

The user wants to undo the above, but trash is empty and creating the folders again does not undo the changes caused by the action. Any idea?

Open Chat is for general discussions. If technical assistance is being requested, this topic is better placed “Install/Boot/Login”.

1 Like

Possibly: backup the data, delete user, re-create user, restore the data?

https://wiki.archlinux.org/title/XDG_user_directories

Where are the user’s homedir backups?

Removal of directories resulted in:

roland@burgberg:~> cat .config/user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
# 
XDG_DESKTOP_DIR="$HOME/"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Vorlagen"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/Bilder"
XDG_VIDEOS_DIR="$HOME/"
roland@burgberg:~> 

Remote host burgberg uses still ext4. Backup of .config/user-dirs.dirs was already overwritten by new version. Rsynced from Infamous Host Erlangen:

roland@burgberg:~> cat .config/user-dirs.dirs
XDG_DESKTOP_DIR="$HOME/Schreibtisch"
XDG_DOCUMENTS_DIR="$HOME/Dokumente"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Musik"
XDG_PICTURES_DIR="$HOME/Bilder"
XDG_PUBLICSHARE_DIR="$HOME/Öffentlich"
XDG_TEMPLATES_DIR="$HOME/Vorlagen"
XDG_VIDEOS_DIR="$HOME/Videos"
roland@burgberg:~> 

As virtually always ArchWiki has concise, accurate and helpful information.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.