Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions static/usr/bin/core-desktop-session-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dbus-update-activation-environment --systemd DISPLAY=:0 WAYLAND_DISPLAY=wayland-
function fixup_xauthority() {
while :; do
sleep 1s
if [ $session_type = "KDE" ]; then
if [ "$session_type" = "KDE" ]; then
xauth_file="$(ls -1t $XDG_RUNTIME_DIR/snap.$snap_name/xauth_* | head -n1)"
else
xauth_file="$(ls -1t $XDG_RUNTIME_DIR/snap.$snap_name/.mutter-Xwaylandauth.* | head -n1)"
Expand All @@ -38,7 +38,7 @@ function fixup_xauthority() {
fi
done
}
if [ $session_type = "KDE" ]; then
if [ "$session_type" = "KDE" ]; then
# Temporary workaround until we have a better way to expose our services and targets
# 1. Expose our targets, services and overloads
rm -rf $XDG_RUNTIME_DIR/systemd/user.control
Expand Down