Questions tagged [xdg-user-dirs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
90 views

xdg-user-dirs-update not working with more than one directory

https://manpages.ubuntu.com/manpages/focal/man1/xdg-user-dirs-update.1.html Why is only the last directory being set in the xdg-user-dirs file? % xdg-user-dirs-update --dummy-output ~/test \ --set ...
paradroid's user avatar
  • 1,171
0 votes
1 answer
41 views

How to add custom default bookmark to Gnome Files?

Is there a way to add a custom directory to the default shortcuts to Files' sidebar? Not as a bookmark, as a default XDG directory? For instance, I've added XDG_WORK_DIR="$HOME/Work" to ....
joaocandre's user avatar
0 votes
1 answer
66 views

Hiding desktop icons in a custom Kali live ISO with gnome

I built for fun and convenience a portable customized Kali live ISO with gnome that I can carry easily around on my USB pen. I am struggling on two very stupid and useless things that, anyway, I would ...
Bertone's user avatar
  • 101
1 vote
1 answer
2k views

How can I find the value of $XDG_CONFIG_HOME, $XDG_CONFIG_HOME, $XDG_STATE_HOME, etc in a Bash script?

This seems like a simple question that every application developer would have, but I can't find the answer. Per the latest XDG Basedir Spec, there are many directories that should be defined in ...
Dr-Bracket's user avatar
4 votes
1 answer
2k views

Where/How are the XDG_*_DIR user directory variables supposed to be set?

I'm referring to: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html I have the following files in my .config directory: ~/.config/user-dirs.dirs: # ... XDG_DOWNLOAD_DIR=&...
anick's user avatar
  • 440
2 votes
1 answer
2k 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, ...
Rubem Pacelli's user avatar
0 votes
2 answers
75 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 ...
Krateng's user avatar
  • 143
0 votes
2 answers
377 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.
Erik's user avatar
  • 123
3 votes
1 answer
567 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_ ...
hakre's user avatar
  • 409
1 vote
0 answers
820 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 ...
Zhro's user avatar
  • 2,505
3 votes
3 answers
6k 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 ...
Zhro's user avatar
  • 2,505
1 vote
0 answers
49 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/...
Jamie Hutber's user avatar
2 votes
1 answer
2k 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 ...
Dentrax's user avatar
  • 123
8 votes
2 answers
14k 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 ...
Tom Hale's user avatar
  • 28.9k
0 votes
2 answers
109 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 ~/ ...
jeremysprofile's user avatar
2 votes
1 answer
487 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-...
lofidevops's user avatar
  • 2,987
0 votes
2 answers
305 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-[...
zenlord's user avatar
  • 688
0 votes
3 answers
376 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 ...
kenn's user avatar
  • 733
8 votes
1 answer
3k 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 ...
Tobia's user avatar
  • 669
34 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 ...
Thomas Koch's user avatar
4 votes
1 answer
104 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 ...
soc's user avatar
  • 430
6 votes
0 answers
1k 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 ...
kzh's user avatar
  • 193
4 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 ...
Sunshine's user avatar
  • 245
2 votes
1 answer
444 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 ...
Adam Thompson's user avatar
15 votes
2 answers
7k 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 ...
Mark's user avatar
  • 1,763
1 vote
0 answers
190 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 "$...
robert's user avatar
  • 556
10 votes
3 answers
8k 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 ...
Marcel's user avatar
  • 1,114
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 ...
DutchArjo's user avatar
  • 747