[neon/snap-packaging/plasma-desktop-session-snap] scripts: Fix the access mode of the XDG_RUNTIME_DIR

Kevin Ottens null at kde.org
Mon Apr 29 07:23:15 BST 2024


Git commit ca0915a057baadfbd92abcd8eff9a867d8dc211e by Kevin Ottens.
Committed on 29/04/2024 at 06:23.
Pushed by ervin into branch 'master'.

Fix the access mode of the XDG_RUNTIME_DIR

Despite asking for 0700 explicitely at mkdir time, it ends up being 0755
in practice, so add an extra chmod call.

M  +1    -0    scripts/run-plasma-session.sh

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

diff --git a/scripts/run-plasma-session.sh b/scripts/run-plasma-session.sh
index 5ec61d2..8f4f33e 100755
--- a/scripts/run-plasma-session.sh
+++ b/scripts/run-plasma-session.sh
@@ -13,6 +13,7 @@ chmod 01777 /tmp/.X11-unix /tmp/.ICE-unix
 
 # Create the runtime directory
 mkdir -p --mode=700 $XDG_RUNTIME_DIR
+chmod 700 $XDG_RUNTIME_DIR
 
 export PULSE_SERVER=unix:/run/user/`id -u`/pulse/native
 export XDG_CURRENT_DESKTOP=KDE


More information about the Neon-commits mailing list