New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i3 extends the $XDG_CONFIG_DIRS every login #3161

coaxial opened this Issue Mar 6, 2018 · 4 comments


None yet
5 participants

coaxial commented Mar 6, 2018

Output of i3 --moreversion 2>&- || i3 --version:

Running i3 version: 4.14.1 (2017-09-24) (pid 431) abort…)
Loaded i3 config: /home/coaxial/.config/i3/config (Last modified: Tue 06 Mar 2018 03:19:10 PM EST, 348 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

URL to a logfile as per

What I did:

I log in, open a terminal, and echo the $XDG_CONFIG_DIRS variable. Log out, and repeat.

What I saw:

The variable grows after every login, a new :/etc/xdg/xdg-i3 is added. i.e. after several logins:


What I expected instead:

$XDG_CONFIG_DIRS to only contain /etc/xdg/xdg-i3:/etc/xdg no matter how many times I have logged in before.

@i3bot i3bot added the 4.14 label Mar 6, 2018


This comment has been minimized.


Airblader commented Mar 7, 2018

How are you starting i3? Through a login manager?


This comment has been minimized.

coaxial commented Mar 7, 2018

Yes I am using a login manager. I think Ubuntu 17.10 ships with GDM.


This comment has been minimized.


Airblader commented Mar 9, 2018

I'm not sure this is actually an i3 issue. AFAIK, we don't modify the path anywhere. The only culprit I could imagine is the i3.desktop file, but I don't see anything in there related to this either.


This comment has been minimized.


stapelberg commented Oct 7, 2018

@coaxial Is this issue still reproducible? If yes, could you provide the output of ps auxf, and the output of tr '\0' '\n' < /proc/<pid>/environ for each pid in the process tree of i3? This should tell us which process sets the environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment