2022 Developer Survey is open! Take survey.

Questions tagged [xdg-base-directory]

Operability with the XDG Base Directory Specification

Filter by
Sorted by
Tagged with
4 votes
0 answers
65 views

Where is the setting that tells the desktop to look in ~/.local/share?

I had some issues and tried to reset my Ubuntu desktop back to defaults, but the results were poor. After comparing all the settings side by side with a fresh Ubuntu install, I got it back to about ...
user avatar
  • 141
0 votes
2 answers
185 views

What is the Minimum Setup Needed for Setting-up XDG Directories ($XDG_RUNTIME_DIR etc.)?

I'm in a setup (20.04) that is basically headless (a solaris zone, but we could probably consider it analogous to any server sort of setup), and as such, I don't have any graphical environment ...
user avatar
1 vote
0 answers
51 views

How can I make a subfolder that looks and behaves like Documents/Music/etc? [duplicate]

The home folder starts with default folders (mostly XDG base directories) like ~/Documents and ~/Music. These are decorated as follows: custom folder icon (not an emblem) custom icon matches the ...
user avatar
  • 19.4k
1 vote
1 answer
577 views

What creates $HOME/.local/share/keyrings?

According to the XDG Base Directory Spec, $XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a ...
user avatar
1 vote
2 answers
2k views

What is the meaning of "/.cache/" in a path or directory?

I was looking for a file "file.odt" so I used the find command: sudo find / -name "file.odt" While my computer came up with several paths to a number of copies of the same file, it also came up with ...
user avatar
  • 1,263
14 votes
2 answers
9k views

Is $HOME/.local/share the default value for $XDG_DATA_HOME?

What's the default value for $XDG_DATA_HOME variable? I get an empty line with: echo $XDG_DATA_HOME According to the Free Desktop XDG Base Directory Environment variables specification, it might be ...
user avatar
  • 417
6 votes
2 answers
10k views

How can I get the (XDG) Default User Directories from Python?

By example, In English the default user folders will be: $HOME/Desktop .... $HOME/Videos In Spanish the default user folders will be: $HOME/Escritorio .... $HOME/Vídeos The file ~/.config/user-...
user avatar
  • 2,215
7 votes
2 answers
4k views

How can I force all applications to use $XDG_CONFIG_HOME instead of ~/.APP?

As far as I understand, the XDG guidelines recommend that applications store their configuration in $XDG_CONFIG_HOME/APP (usually ~/.config/APP) rather than ~/.APP (I'm not sure if there are also ...
user avatar
  • 19.4k
7 votes
2 answers
154 views

Is .config called other things for different system languages?

I'm making an application that reads/writes to files in the ~/.config folder; however, I want to make sure it works under all systems. Is .config called other things for different system languages? Is ...
user avatar
  • 1,401
5 votes
2 answers
574 views

What are the default hidden folders under ~?

I was wondering what the default hidden folders under ~? What are their purposes? For example, what are the purposes of ~/.local/ and ~/.local/share/ ? Which of these hidden folders also exist in ...
user avatar
  • 23.1k