Export XDG_CONFIG_HOME and XDG_DATA_HOME as well

Bug #1969305 reported by Akbarkhon Variskhanov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
shadow (Ubuntu)
New
Undecided
Unassigned

Bug Description

These base directories should also be included to make scripting easier.

Their default values should be set as per XDG base-dir spec, i.e.:

XDG_CONFIG_HOME="$HOME/.config"
XDG_DATA_HOME="$HOME/.local/share"

Tags: focal
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

What file or binary package does this bug report related to?

Also what version of Ubuntu are you using?

Changed in xorg (Ubuntu):
status: New → Incomplete
Revision history for this message
Akbarkhon Variskhanov (kbar) wrote :

It's one of the shell scripts in https://git.launchpad.net/ubuntu/+source/xorg/tree/debian/local/Xsession.d, which is then installed to /etc/X11/Xsession.d

The most appropriate would be 60x11-common_xdg_path, where CONFIG and DATA dirs are exported from.

I'm on Xubuntu 20.04 but I checked the devel branch.

Changed in xorg (Ubuntu):
status: Incomplete → New
tags: added: focal
affects: xorg (Ubuntu) → gnome-session (Ubuntu)
Revision history for this message
Akbarkhon Variskhanov (kbar) wrote :

After a bit of testing and consideration, I have come to a conclusion that X11 hierarchy is not fit for this purpose since Wayland or pure virtual terminal sessions never get to source those files.

A more suitable destination for such an init file would be /etc/profile.d, which contains system-wide init files for login shells (sourced upon shell invocation). Ideally, this should be standardized across all XDG-compliant systems.

For now, another file should be placed in debian and included in d/gnome-session-common.install for installation at /etc/profile.d

affects: gnome-session (Ubuntu) → shadow (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.