Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 16347  / 2 Years ago, wed, march 30, 2022, 8:46:59

Each time I changed and saved .config/user-dirs.dirs, and after restarted the system, the XDG_DOWNLOAD_DIR are reverted:



diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs
index 8f6e2db..dcff34e 100644
--- a/.config/user-dirs.dirs
+++ b/.config/user-dirs.dirs
@@ -7,11 +7,9 @@
#
XDG_PUBLICSHARE_DIR="$HOME/public"
XDG_TEMPLATES_DIR="$HOME/public/template"
-
XDG_DESKTOP_DIR="$HOME/private/desktop"
XDG_DOCUMENTS_DIR="$HOME/private/doc"
XDG_PICTURES_DIR="$HOME/private/picture"
XDG_MUSIC_DIR="$HOME/private/music"
XDG_VIDEOS_DIR="$HOME/private/video"
-
-XDG_DOWNLOAD_DIR="$HOME/var/downloads"
+XDG_DOWNLOAD_DIR="$HOME/"


How to make my changes permanent?


More From » 11.04

 Answers
3

See xdg-user-dirs in Ubuntu Software Center:



It sets up a config file in $(XDG_CONFIG_HOME)/user-dirs.dirs.
Change the default directories and their initial values in /etc/xdg/user-dirs.defaults.
The values are relative pathnames from the home directory.


[#44651] Thursday, March 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ovierman

Total Points: 445
Total Questions: 108
Total Answers: 111

Location: Libya
Member since Fri, Oct 30, 2020
4 Years ago
;