From 14091c5a83be34c9e3bc5273ac1ddd1c3c79cc5a Mon Sep 17 00:00:00 2001 From: Sergio Costas Rodriguez Date: Fri, 21 Mar 2025 13:32:53 +0100 Subject: [PATCH] Fix bash syntax This patch fixes a warning from Bash --- static/usr/bin/core-desktop-session-wrapper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/usr/bin/core-desktop-session-wrapper.sh b/static/usr/bin/core-desktop-session-wrapper.sh index 13c50ad1..db631ce7 100755 --- a/static/usr/bin/core-desktop-session-wrapper.sh +++ b/static/usr/bin/core-desktop-session-wrapper.sh @@ -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)" @@ -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