In any desktop environment (take KDE for example), how can I recreate the directory if I accidentally deleted any of Documents, Downloads, Desktop, etc? (Let alone the contents inside them, I know that…)
I mean, they are special directories in comparison to all the rest, right?
@F_style just remove the config and run xdg-user-dirs-update --force
A fresh MicroOS SelfInstall…
:~> ls
bin
:~> xdg-user-dirs-update --force
:~> ls
bin Desktop Downloads Music Pictures Public Templates Videos
:~> rm -rf Documents
:~> ls
bin Desktop Downloads Music Pictures Public Templates Videos
:~> rm .config/user-dirs.dirs
:~> xdg-user-dirs-update --force
:~> ls
bin Desktop Downloads Music Pictures Public Templates Videos
I suppose they might be special, but they aren’t necessary here in my 15.5 at least:
> ls -gGd Desktop Documents Downloads Music Pictures Public Templates Videos
ls: cannot access 'Music': No such file or directory
ls: cannot access 'Pictures': No such file or directory
ls: cannot access 'Public': No such file or directory
ls: cannot access 'Templates': No such file or directory
ls: cannot access 'Videos': No such file or directory
drwx------ 2 1024 Nov 15 2010 Desktop
drwxrwxr-x 10 9216 Jul 5 20:30 Documents
drwxr-xr-x 2 1024 Aug 17 15:33 Downloads
The only time downloads go in my ~/Downloads/ is when I miss or am not given an option to choose my intended location. Most of my downloading is done with a downloader, usually wget, after moving to the download target location. That Aug 17 is there in above output because I had missed clearing a subdir from it that showed up there 5 years ago. I just found and removed it.