[neon/snap-packaging/plasma-desktop-session] scripts: Don't export the global XDG_RUNTIME_DIR too early

Kevin Ottens null at kde.org
Wed Mar 19 16:22:34 GMT 2025


Git commit c8492aa1b35bec4c75f52d51c64c33b6e2cf70a1 by Kevin Ottens.
Committed on 19/03/2025 at 16:22.
Pushed by ervin into branch 'master'.

Don't export the global XDG_RUNTIME_DIR too early

Some services will look at the wrong place otherwise

M  +3    -1    scripts/run-session.sh

https://invent.kde.org/neon/snap-packaging/plasma-desktop-session/-/commit/c8492aa1b35bec4c75f52d51c64c33b6e2cf70a1

diff --git a/scripts/run-session.sh b/scripts/run-session.sh
index 7353762..8f5fa63 100755
--- a/scripts/run-session.sh
+++ b/scripts/run-session.sh
@@ -12,9 +12,11 @@ mkdir -p /tmp/.X11-unix /tmp/.ICE-unix
 chmod 01777 /tmp/.X11-unix /tmp/.ICE-unix
 
 # Create the runtime directory
-export XDG_RUNTIME_DIR=/run/user/`id -u`
 mkdir -p --mode=700 $XDG_RUNTIME_DIR
 chmod 700 $XDG_RUNTIME_DIR
+
+# Services will need the parent dir to work
+export XDG_RUNTIME_DIR=/run/user/`id -u`
 chmod 700 $XDG_RUNTIME_DIR/snap.$SNAP_NAME
 
 export PULSE_SERVER=unix:/run/user/`id -u`/pulse/native



More information about the Neon-commits mailing list