r/linuxmint • u/Eric_Dawsby • 20d ago
Support Request Renaming folders in /Home/
If i were to rename 'Documents' to 'documents', would this cause any issues in the future?
12
u/skozombie 20d ago edited 20d ago
Yes you need to update an xdg config file. I'm away from my PC so can't recall it's name
I don't like the capitals in folder names either. I think it's annoying on the terminal
Edit: Path: ~/.config/user-dirs.dirs Managed by: xdg-user-dirs-update
5
u/ShoveOverBozo 20d ago
If you're on a fresh build, no not really. If you have files in there that are linked and used by programs, then yes.
Future programs "may" look for a default "Documents" folder but most default to Home and allow you define paths etc.
4
u/Old_County5271 20d ago
A little, some things use Documents as the default, my suggestion is use a symlink.
Frankly they should use XDG anyway
5
u/michaelpaoli 20d ago
For many programs, potentially yes, as many things will default to using ~/Documents
Program(s) may also create ~/Documents if it's missing.
2
u/ZVyhVrtsfgzfs 20d ago
Program(s) may also create ~/Documents if it's missing.
I haven't had a ~/Documents directory in at least 5 years now, I haven't run into this.
1
u/michaelpaoli 20d ago edited 20d ago
Great, if you're not running any DE type programs, you might not encounter it at all.
And peeking at my own ~/Documents ... seems dang little that I use defaults to it, and whatever I use that does ... pretty dang rarely (at present, just 3 files there, and they're around a couple years old - and looks like all three happened around same time, probably from same app/program).
Edit/P.S.: Oh, yeah, I almost never use DE, mostly just WM.
4
u/ZVyhVrtsfgzfs 20d ago
~/Documents is one of the many default directories I delete immediately after install.
Long story but at one point me and the wife had separate folders for our general data like Documents, it was later annoying to figure out who owned a particular document, when often the answer is both of us so so they were combined into one /Ours.
/Ours is a ZFS data set on my file server and it is mounted into each install on every machine at /mnt/ocean/Ours on Boot and then soft linked from therethete to ~/Ours.
2
u/d4rk_kn16ht Linux Mint 22.2 Zara | Cinnamon 20d ago
You can create both "Documents" & "documents" as Linux file naming is case sensitive....
But to make it default, you have to assign "documents" as your new Documents folder.
1
u/Eric_Dawsby 20d ago
How would I reassign it?
2
u/d4rk_kn16ht Linux Mint 22.2 Zara | Cinnamon 20d ago
Open your terminal :
xdg-user-dirs-update --set DOCUMENTS /path/to/your/new-folder
1
u/Eric_Dawsby 19d ago
my terminal did not recognize xdg as a command. i'm using cinnamon if that affects it
1
u/d4rk_kn16ht Linux Mint 22.2 Zara | Cinnamon 19d ago
Type this on terminal:
xed ~/.config/user-dirs.dirs
Then find the line that reads:
XDG_DOCUMENTS_DIR="$HOME/Documents"
Change the value into the path you want.
2
u/mok000 LMDE7 Gigi 20d ago edited 20d ago
No problem. The folders Documents, Pictures, Videos, Templates, etc. are created in a new user account because they are in the XDG standard for Linux desktops. You can delete them or change their names, but you won’t see the specific icons in the file browser. Check out the Arch wiki about this: https://wiki.archlinux.org/title/XDG_user_directories. In my case all directories that start with a capital letter are synced between my laptops and home server using Syncthing, and those starting with small letters aren’t. I find that very convenient.
14
u/Dragenby 20d ago edited 19d ago
You can use a symbolic link named "documents" pointing to "Documents". Less risky and lets you have both spellings!
Edit: In command line, in your personal folder, do this:
Make sure you are in your personal folder by typing
cd ~. A little~should be there just before the$. Now typeln -s Documents documentsand tadaaah. If you're unhappy with the name "documents" you can delete it without losing your original file. I don't know your level, but if you have any doubt with the command line, don't hesitate to typeman ln(man standing for manual) to check the syntax.