Visual Studio Code, Slack and other electrons apps crash due to XDG_CONFIG_DIRS keeps getting expanded every login
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-session (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
xorg (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ubuntu Version: 18.04
gnome-session-
What's expected to happen: $XDG_CONFIG_DIRS is the same on every login
What happens instead: $XDG_CONFIG_DIRS gets expanded on every login
It seems that $XDG_CONFIG_DIRS gets expanded by two entries on every login.
On first login it looks like this:
/etc/xdg/
On second login it gets expanded by the same two entries in front:
/etc/xdg/
On third login, two more entries get added:
/etc/xdg/
At this point Visual Studio Code, which lead me to this, no longer starts and just throw a Segmentation fault/Core Dump.
I suspect this behaviour is triggered by /etc/profile.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-session-
ProcVersionSign
Uname: Linux 4.15.0-15-generic x86_64
ApportVersion: 2.20.9-0ubuntu4
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 16 11:30:09 2018
Dependencies:
InstallationDate: Installed on 2018-04-15 (1 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Beta amd64 (20180404)
PackageArchitec
SourcePackage: gnome-session
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
summary: |
+ Visual Studio Code, Slack and other electrons apps crash due to XDG_CONFIG_DIRS keeps getting expanded every login |
This issue also applies to version 17.10. In my case, I am using gnome desktop and the path /etx/xdg/ xdg-gnome- xorg gets prepended to $XDG_CONFIG_DIRS on every login.
Once the $XDG_CONFIG_DIRS gets beyond a certain length, applications such as slack-desktop fails with a segmentation violation on start up.