This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Disable directories "Documents", "Pictures"

Tags: None
(comma "," separated)
orfest
Registered Member
Posts
2
Karma
0
Hi,

KDE has these directories: Downloads, Documents, Pictures. Different applications use different ones, and I find it inconvenient.
I would like to keep just one of these folders, for example, Downloads, and force all apps to use that single directory.

The use case that is inconvenient currently:
I get documents by downloading them using the browser (goes to Downloads), or by taking screenshots with `spectacle` (goes to Pictures), and then I want to upload them somewhere. Most services usually accept both `pdf` or `png` files, therefore it's impossible for the browser to know which directory to open by default.
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

Thats not really Plasma related as these directories are based on the freedesktop standard.
Create (or edit if exists) the file `~/.config/user-dirs.dirs` like this:
Code: Select all
# main folder is ~/Downloads, other stuff will be saved in /tmp for deletion
XDG_DESKTOP_DIR="/tmp"
XDG_DOCUMENTS_DIR="$HOME/Downloads"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_EBOOKS_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Downloads"
XDG_PICTURES_DIR="$HOME/Downloads"
XDG_PUBLICSHARE_DIR="$HOME/Downloads"
XDG_PROJECTS_DIR="$HOME/Downloads/"
XDG_TEMPLATES_DIR="/tmp"
XDG_VIDEOS_DIR="$HOME/Downloads"

See xdg-user-dirs on freedesktop.org for details.
orfest
Registered Member
Posts
2
Karma
0
Thank you sir, this is exactly what I'm looking for!
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
You're welcome ;)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]