From 5595548e5916e7a928125c619ab24e87a3bacc40 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Tue, 16 Jul 2024 09:29:23 -0400 Subject: [PATCH] Enabling launcher only on x86, i32, and amd64 systems --- snap/hooks/configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snap/hooks/configure b/snap/hooks/configure index 35900d9..9e120f6 100755 --- a/snap/hooks/configure +++ b/snap/hooks/configure @@ -113,8 +113,9 @@ fi # Start or stop the launcher if [ "$(snapctl get launcher)" = "true" ]; then - if [ $(uname -m) = "arm" ]; then - echo "Cannot enable the launcher on an armhf system" + ARCH=$(uname -m) + if [[ "$ARCH" != x86_64* ]] && [[ "$ARCH" != i*86 ]] && [[ "$ARCH" != arm64 ]]; then + echo "Cannot enable the launcher on $ARCH system" exit 1 fi