GNOME Bugzilla – Bug 761317
housekeeping: /tmp/.X11-unix/X0 socket gets removed during housecleaning
Last modified: 2016-03-01 17:39:55 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.
Seeing as we're not even sure that this functionality should stay, just hack it for now.