Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[How To] Lower case home folders

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

[How To] Lower case home folders

#1 Post by pawRoot »

It was always annoying for me that all home folders are starting with uppercase since i manage files mostly in CLI.
I found an easy way to change that and decided to share it.

Keep in mind that i do this RIGHT after doing a minimal install of Debian, so all my home folders are empty (well they actually don't even exist yet).

First create new directories:

Code: Select all

mkdir -p ~/desktop
mkdir -p ~/downloads
mkdir -p ~/templates
mkdir -p ~/public
mkdir -p ~/documents
mkdir -p ~/music
mkdir -p ~/pictures
mkdir -p ~/videos
^Type it one by one in terminal or create script.sh, paste it inside and run it like that

Code: Select all

chmod +x script.sh
./script.sh
Now create a file with settings, ~/.config/user-dirs.dirs and paste this inside

Code: Select all

XDG_DESKTOP_DIR="$HOME/desktop"
XDG_DOWNLOAD_DIR="$HOME/downloads"
XDG_TEMPLATES_DIR="$HOME/templates"
XDG_PUBLICSHARE_DIR="$HOME/public"
XDG_DOCUMENTS_DIR="$HOME/documents"
XDG_MUSIC_DIR="$HOME/music"
XDG_PICTURES_DIR="$HOME/pictures"
XDG_VIDEOS_DIR="$HOME/videos"
Voila :mrgreen:

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: [How To] Lower case home folders

#2 Post by bw123 »

What is ~/Templates and ~/Public for? Why do you need all different folders, can they point to one place just so it doesn't clutter up the house to have them all separate folders?

Why do we need them anyway? Looks like ms windows again... is it a wine thing? or just lazy windows programmers porting to linux for cheap thrills?
https://en.wikipedia.org/wiki/Cheap_Thr ... y_album%29
resigned by AI ChatGPT

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

Re: [How To] Lower case home folders

#3 Post by dilberts_left_nut »

Gnome.

or more specifically, freedesktop.org

... and, yes, you can point them wherever you want, including to a single folder, or remove the xdg packages completely (but the DE metapackages will get frightened by that).
AdrianTM wrote:There's no hacker in my grandma...

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: [How To] Lower case home folders

#4 Post by bw123 »

I've really never liked this way of organizing by filetype, maybe I'm weird. Instead I have categories, like Truck, Laptop, House, Projects, etc with several different types of content in each, and other folders in that when they get large. All related content, some html, jpg, video, txtfile whatever all about a certain subject.

I have never used these folders to store the content they are named for. I have Desktop and most of the others pointed to ~/.desktop and it's empty.
resigned by AI ChatGPT

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: [How To] Lower case home folders

#5 Post by pawRoot »

^These folders are created automatically if you launch for example a browser like Firefox and try to download a file.

Post Reply