Public bug reported:

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)

** Affects: gnome-session (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

** Description changed:

  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 
+ 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 Segementation fault/Core Dump.
+ 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.
+ $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)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/1764355

Title:
  XDG_CONFIG_DIRS keeps getting expanded every login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1764355/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to