Questions tagged [xdg-user-dirs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
37 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_ ...
0
votes
0answers
21 views

Make a systemd unit read user-dirs.dirs

I have a systemd service + timer that runs restic to perform daily backups. My current solution backups hardcoded paths because systemd cannot use environment variables from the system. In fact, $...
1
vote
0answers
110 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 ...
0
votes
3answers
340 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 ...
0
votes
0answers
24 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/...
0
votes
1answer
120 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 ...
2
votes
1answer
3k 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 ...
0
votes
2answers
54 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 ~/ ...
0
votes
1answer
64 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-...
0
votes
1answer
153 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-[...
0
votes
3answers
156 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 ...
2
votes
1answer
924 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 ...
22
votes
1answer
1k 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 ...
4
votes
1answer
67 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 ...
4
votes
0answers
506 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 ...
2
votes
1answer
877 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 ...
1
vote
1answer
208 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 ...
8
votes
2answers
4k 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 ...
1
vote
0answers
141 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 "$...
6
votes
2answers
4k 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 ...
3
votes
0answers
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 ...