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

Closed
coaxial opened this Issue Mar 6, 2018 · 4 comments

Comments

Projects
None yet
5 participants
@coaxial

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 https://i3wm.org/docs/debugging.html: https://logs.i3wm.org/logs/5684310296231936.bz2

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:

$ echo $XDG_CONFIG_DIRS
/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3-with-shmlog:/etc/xdg/xdg-i3-with-shmlog:/etc/xdg/xdg-i3-with-shmlog:/etc/xdg/xdg-i3-with-shmlog:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg/xdg-i3:/etc/xdg

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

@Airblader

This comment has been minimized.

Member

Airblader commented Mar 7, 2018

How are you starting i3? Through a login manager?

@coaxial

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.

@Airblader

This comment has been minimized.

Member

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.

@stapelberg

This comment has been minimized.

Member

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