Questions tagged [xdg-base-directory]

Operability with the XDG Base Directory Specification

Filter by
Sorted by
Tagged with
0 votes
0 answers

How does the expression `echo echo ${XDG_DATA_HOME:-$HOME/} ` work to give me my home directory? [duplicate]

echo ${XDG_DATA_HOME:-$HOME/} gives me the same result as echo $HOME. Yet $XDG_DATA_HOME:-$HOME and XDG_DATA_HOME are not in my environment. I haven't been able to find any documentation on how these ...
Peter Goodall's user avatar
4 votes
0 answers

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 ...
g051051's user avatar
  • 141
0 votes
2 answers

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 ...
stellarpower's user avatar
1 vote
0 answers

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 ...
lofidevops's user avatar
  • 20.5k
1 vote
1 answer

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 ...
MicrosoftFree's user avatar
2 votes
2 answers

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 ...
AlphaOmega's user avatar
  • 1,403
16 votes
2 answers

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 ...
g0lem's user avatar
  • 457
6 votes
5 answers

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-...
Costales's user avatar
  • 2,234
7 votes
2 answers

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 ...
lofidevops's user avatar
  • 20.5k
7 votes
2 answers

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 ...
weberc2's user avatar
  • 1,402
6 votes
2 answers

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 ...
Tim's user avatar
  • 24.7k