176
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 10 Apr 2026
176 points (99.4% liked)
Linux
63789 readers
712 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
Btw, how to define custom categories for user directories?
You mean the icons?
At least in KDE dolphin, you can edit any folder and set the icon as whatever you like. It'll follow the theme color too, if you use the right icon.
No, category. They are mapped in $XDG_CONFIG_HOME/user-dirs.dirs, but there's only 12 of them. Of which i use 4 but would like to have others too and define custom icon-names i could put in the .icons directory. In short, i want to extend them. I could reuse, for example, XDG_PUBLICSHARE_DIR, but then it gets the wrong icon.
They didn't really think "8 categories is enough for all" and hardcode this shit, no?
Ah, no. I'm not familiar with how to do that.
But I wouldn't think so? I'm more familiar with KDE, but with it at least I've always found ways to edit some files somewhere to accomplish what I want.
So far.
For this I've just been creating folders and setting their icons manually.
By that do you mean how to set icons for certain folders irrespective of theme? You need to use the gio command
Not only does this make it so that no matter what icon theme you use the icon will change according to the theme, but you also do not have to go icon hunting in a bunch of directories.
Edit: I just saw that you meant using XDG catergories, maybe the gio command can still help? I mean you could theoretically change any metadata field so maybe that helps.