[1/4] x11-common: set XDG_RUNTIME_DIR if it isn't already set
Submitted by Ross Burton on Jan. 16, 2013, 4:06 p.m.
Patch ID: 42727
new file mode 100644
@@ -0,0 +1,13 @@
+# Minimal/stub implementation of the XDG Base Directory specification.
+# Wayland needs XDG_RUNTIME_DIR, so set it to /tmp. This isn't compliant with
+# the specification (wrong mode, wrong owner) but it's mostly sufficient.
+# In the ideal case where SystemD is booting and userspace is initiated by a
+# SystemD user session this will have been set already, so don't overwrite it.
+if [ -z "$XGD_RUNTIME_DIR" ]; then
+ export XDG_RUNTIME_DIR