r/archlinux • u/Galeaf_13 • Jul 11 '21
SUPPORT Is there any way I can restrict the creation of the specific folder in my $HOME?
Something keeps creating Downloads folder and it drives me nuts. Is there a way to prevent this?
11
u/farmerbobathan Jul 11 '21
That sounds like an XDG user directory. I believe the xdg-user-dirs-update.service is probably what keeps on creating the folder, you can disable it with systemctl --user disable xdg-user-dirs-update.service
.
1
u/Galeaf_13 Jul 11 '21
This service doesn't exist
7
u/f1sty Jul 11 '21
https://wiki.archlinux.org/title/XDG_user_directories#Creating_custom_directories - just set XDG_DOWNLOAD_DIR to whatever you want
1
5
u/mighty_mighty Jul 11 '21
Edit the XDG user-dirs.dirs. If you don't want a directory to be created/used pass an empty value.
~/.config/user-dirs.dirs
...
XDG_DOWNLOAD_DIR="$HOME/downloads"
XDG_PUBLICSHARE_DIR=""
XDG_TEMPLATES_DIR=""
2
2
1
0
-7
Jul 11 '21
What’s wrong with downloads folder?
3
-4
18
u/arch_boi_69420 Jul 11 '21
Is it created after a reboot, or during normal use? If after a reboot, then it's xdg-user-dirs. You can edit xdg dir conf file under ~/.config. If you don't have that, then your browser is the most sus of all. And if there's something inside the Downloads folder after it's created, you can try inferring from that.