2022 Developer Survey is open! Take survey.

Questions tagged [xdg-user-dirs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
81 views

$XDG_CACHE_HOME vs. $XDG_STATE_HOME

Based on the XDG Base Directory Spacifications, $XDG_STATE_HOME should store history and log of the programs. But it is very common to see UNIX programs storing these kind of stuff at $XDG_CACHE_HOME, ...
user avatar
0 votes
2 answers
27 views

What directory specifications need to be followed on servers?

On PCs, the XDG Desktop specifications allow the individual desktops to set different folders for various data. When writing an application that will only ever be run on servers, should one simply ...
user avatar
  • 133
0 votes
0 answers
13 views

Change displayed name of home folder in gtk3 file chooser

In the gtk3 file chooser the left side is reserved for my xdg user dirs and bookmarks. The entry for my home folder is correctly localized as "Persönlicher Ordner" (personal folder). I find ...
user avatar
0 votes
2 answers
116 views

What is the correct path to store a user specific credentials file?

I guess ~/.config (XDG_CONFIG_HOME) is not correct because that way users have to be constantly aware which files are safe to commit to their dotfiles repository.
user avatar
  • 123
2 votes
1 answer
345 views

In XDG Base Directory Specification what if $HOME is unset or empty

Personally I'd like to adhere to to XDG Base Directory Specification to make my utility more portable. However when doing so it requires me to re-implement for systems that do not have the XDG_ ...
user avatar
  • 333
1 vote
0 answers
521 views

Why are my settings in user-dirs.conf not taking affect?

I want the XDG specification folders in my home directory to be lowercase. I've created a file ~/.config/user-dirs.conf and updated it as such: enabled=True filename_encoding=UTF-8 DESKTOP=desktop2 ...
user avatar
  • 2,145
1 vote
3 answers
4k views

Why are the XDG variables for my account undefined when I login through SSH?

When logged in to the desktop: $ env | grep XDG_ XDG_CONFIG_DIRS=/etc/xdg XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session4 XDG_MENU_PREFIX=xfce- XDG_SEAT=seat0 XDG_SESSION_DESKTOP=xfce ...
user avatar
  • 2,145
0 votes
0 answers
42 views

Unable to set /mnt/* as user-dirs.dirs

I would like to set the root of some of my mounts as the user-dirs, however when using the root it returns nothing. Setting root mount $ xdg-user-dirs-update --set VIDEOS /mnt/videos/ $ cat /home/...
user avatar
1 vote
1 answer
872 views

Where should I store my application files (data, cache, logs, crashes, etc.) [closed]

Although I did some research on this subject, I couldn't reach the exact information I wanted. Actually, not exactly disclosed, everyone approached in a different way. For the: Filesystem Hierarchy ...
user avatar
  • 113
3 votes
2 answers
9k views

How to create / delete $XDG_RUNTIME_DIR at login / logoff

Today I was surprised to ssh into my box running Arch Linux and find that /run/user/$(id -u) didn't exist. The XDG Base Directory Specification says: $XDG_RUNTIME_DIR defines the base directory ...
user avatar
  • 24.6k
0 votes
2 answers
97 views

Can I use ~/.config/ instead of ~/ for arbitrary packages?

I read very little about xdg, probably just enough to be dangerous. From what I've seen online, it looks like the new cool thing is to put specification files for X in ~/.config/ instead of just ~/ ...
user avatar
2 votes
1 answer
242 views

Is there a standard XDG location for user secrets?

XDG defines ~/.config, ~/.cache and other shell-agnostic locations for user configuration files. Some applications define their own locations for user secrets, like ~/.ssh and ~/.gpg. Is there an XDG-...
user avatar
  • 2,495
0 votes
2 answers
259 views

$GDM_USER has no access to $XDG_DATA after manually changing location of $XDG_DATA

I have a small office with 5 desktops and a server, all of them running on Debian. I have just upgraded the clients to Stretch and see only 1 error in the journal that bothers me: gnome-settings-[...
user avatar
  • 633
0 votes
3 answers
288 views

bashrc function to create a folder every month and switch XDG_DESKTOP_DIR to it

I am actively using desktop, so files and folders rapidly accumulate on desktop. I need a bashrc way that it checks month on the first day then creates a directory with month name, finally sets it ...
user avatar
  • 733
6 votes
1 answer
2k views

What is the user equivalent of the global /opt directory?

I'm wondering if anybody has agreed on a user equivalent of the global /opt directory, for third-party packages that are distributed as a tarball to be unpacked as a single directory. Examples include ...
user avatar
  • 537
29 votes
1 answer
3k views

How did the ~/.local/bin thing start? How widespread is it?

I find more and more tools that put executables into ~/.local/bin. I am old and for me ~/bin is the place in my $HOME for executables. Where did this crazy new fashion originate? Why are people doing ...
user avatar
4 votes
1 answer
82 views

How to use SELinux to reject applications' modifications to home directory?

I have grown to be annoyed by applications ignoring the XDG base directory specification. What's the best way to deny applications any changes to the home directory except in the specified ...
user avatar
  • 410
5 votes
0 answers
781 views

Is there a specification or defined purpose of XDG user directories from freedesktop.org?

Specifically I am asking about ~/Templates/, but any information about the other directories is appreciated. I understand how to use ~/Templates in the context of my graphical file manager, but I am ...
user avatar
  • 173
2 votes
1 answer
2k views

Why are folders in home directory (Documents, Pictures, etc) created only after the first graphical login?

I am learning Red Hat Enterprise Linux 7. After creating users as root, if I login as the new user using "su - username", there are no directories in the user's home directory . Once I login as the ...
user avatar
  • 235
2 votes
1 answer
359 views

Setting XDG_CACHE_HOME Breaks Firefox Installation

In my .bashrc I set my XDG_CACHE_HOME variable to "~/.cache/". This breaks my Firefox installation, telling me that it cannot load my profile. Without this line, Firefox loads properly. I have ...
user avatar
11 votes
2 answers
6k views

Who is creating Documents/Video/Pictures/etc. in home directory

I had Ubuntu-14.04 installed in a minimum configuration, i.e. with no X Windows support. Later I added x-server packages for my card, and a lightweight WindowManager (I don't want KDE or GNOME), so I ...
user avatar
  • 1,409
1 vote
0 answers
169 views

Setting an XDG_DIR as a child folder of another XDG_DIR

I am configuring my linux user environment by editing the configuration file located at ~/.config/user-dirs.dirs . Here is a snippet of my configuration: XDG_DOCUMENTS_DIR="$HOME/docs" #originally "$...
user avatar
  • 556
8 votes
3 answers
6k views

user-dirs.dirs reset at start-up

I wanted to have some of the sub-folders of my home directory (like Music, Downloads,Videos) on my hard-disk-raid instead of my SSD. Therefore I deleted those folders in my home directory, recreated ...
user avatar
  • 1,084
3 votes
0 answers
2k views

xdg user dirs: not relocating although set?

I relocated my home directories using XDG user dirs as mentioned here: how to make gnome use my home folder as Desktop folder? However, this does not work for me so far. I have set the Downloads ...
user avatar
  • 717