This bug was fixed in the package gnome-session - 3.28.1-0ubuntu2 --------------- gnome-session (3.28.1-0ubuntu2) bionic; urgency=medium
* debian/xdg_dirs_desktop_session.sh, debian/55gnome-session_gnomerc: - protect against multiple additions of the same paths to XDG_CONFIG_DIRS and XDG_DATA_DIRS, resulting to duplication on consecutive logout/logins due to older session hanging in and env being reused. Some consequences is that electron application crashes (LP: #1764355) -- Didier Roche <didro...@ubuntu.com> Thu, 19 Apr 2018 16:43:50 +0200 ** Changed in: gnome-session (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1764355 Title: Visual Studio Code, Slack and other electrons apps crash due to XDG_CONFIG_DIRS keeps getting expanded every login Status in gnome-session package in Ubuntu: Fix Released Status in xorg package in Ubuntu: New Bug description: Ubuntu Version: 18.04 gnome-session-common Version: 3.28.1-0ubuntu1 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/xdg-ubuntu:/etc/xdg/xdg-ubuntu:/etc/xdg On second login it gets expanded by the same two entries in front: /etc/xdg/xdg-ubuntu:/etc/xdg/xdg-ubuntu:/etc/xdg/xdg-ubuntu:/etc/xdg /xdg-ubuntu:/etc/xdg On third login, two more entries get added: /etc/xdg/xdg-ubuntu:/etc/xdg/xdg-ubuntu:/etc/xdg/xdg-ubuntu:/etc/xdg /xdg-ubuntu:/etc/xdg/xdg-ubuntu:/etc/xdg/xdg-ubuntu:/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.d/xdg_dirs_desktop_session.sh adding more stuff to $XDG_CONFIG_DIRS on every login. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: gnome-session-common 3.28.1-0ubuntu1 ProcVersionSignature: Ubuntu 4.15.0-15.16-generic 4.15.15 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) PackageArchitecture: all SourcePackage: gnome-session UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1764355/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp