After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761317 - housekeeping: /tmp/.X11-unix/X0 socket gets removed during housecleaning
housekeeping: /tmp/.X11-unix/X0 socket gets removed during housecleaning
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: housekeeping
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2016-01-30 00:30 UTC by Christian Hergert
Modified: 2016-03-01 17:39 UTC
See Also:
GNOME target: 3.20
GNOME version: ---



Description Christian Hergert 2016-01-30 00:30:08 UTC
It looks like gnome-settings-daemon is removing the /tmp/.X11-unix/X0 socket. X registers that as both an abstract path, and a real socket.

However, abstract sockets cannot be contained (grumble) so we map the real socket into xdg-app inferiors without sharing the network namespace (so the abstract path will not be found).

https://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/housekeeping/gsd-disk-space.c seems to be the relevant file.

I verified it removed the file by running gnome-settings-daemon with:

 /usr/libexec/gnome-settings-daemon --replace --debug

And watched for the pruned leaf.

This is causing applications to be unable to connect to a display when running with xdg-app if a purge has occurred.
Comment 1 Bastien Nocera 2016-03-01 17:39:55 UTC
Seeing as we're not even sure that this functionality should stay, just hack it for now.