[neon/snap-packaging/plasma-core-desktop-snap] static/usr/bin: Looks like the xauth hack isn't necessary for KDE sessions
Kevin Ottens
null at kde.org
Mon Apr 29 07:20:03 BST 2024
Git commit 78aebbb9ae5805cd73a04ce7ebc57602eb759d2d by Kevin Ottens.
Committed on 29/04/2024 at 06:19.
Pushed by ervin into branch 'master'.
Looks like the xauth hack isn't necessary for KDE sessions
M +3 -6 static/usr/bin/core-desktop-session-wrapper.sh
https://invent.kde.org/neon/snap-packaging/plasma-core-desktop-snap/-/commit/78aebbb9ae5805cd73a04ce7ebc57602eb759d2d
diff --git a/static/usr/bin/core-desktop-session-wrapper.sh b/static/usr/bin/core-desktop-session-wrapper.sh
index d04ddf0..4ddec5f 100755
--- a/static/usr/bin/core-desktop-session-wrapper.sh
+++ b/static/usr/bin/core-desktop-session-wrapper.sh
@@ -32,14 +32,11 @@ function fixup_xauthority() {
cp "$xauth_file" $XDG_RUNTIME_DIR/.Xauthority
return
fi
- xauth_file="$(ls -1t /tmp/snap-private-tmp/snap.$snap_name/tmp/runtime-$USER/xauth_* | head -n1)"
- if [ -f "$xauth_file" ]; then
- cp "$xauth_file" $XDG_RUNTIME_DIR/.Xauthority
- return
- fi
done
}
-fixup_xauthority &
+if [ $session_type != "KDE" ]; then
+ fixup_xauthority &
+fi
# Symlink the Wayland socket from the snap's private directory
ln -sf "snap.$snap_name/wayland-0" $XDG_RUNTIME_DIR/wayland-0
More information about the Neon-commits
mailing list