diff -Naur gnome-desktop-3.38.6.org/libgnome-desktop/gnome-desktop-thumbnail-script.c gnome-desktop-3.38.6.sw/libgnome-desktop/gnome-desktop-thumbnail-script.c --- gnome-desktop-3.38.6.org/libgnome-desktop/gnome-desktop-thumbnail-script.c 2022-08-19 15:09:31.100000000 +0000 +++ gnome-desktop-3.38.6.sw/libgnome-desktop/gnome-desktop-thumbnail-script.c 2022-08-19 15:11:51.660000000 +0000 @@ -152,7 +152,7 @@ } /* From https://github.com/flatpak/flatpak/blob/master/common/flatpak-utils.c */ -#if !defined(__i386__) && !defined(__x86_64__) && !defined(__aarch64__) && !defined(__arm__) +#if !defined(__i386__) && !defined(__x86_64__) && !defined(__aarch64__) && !defined(__arm__) && !defined(__sw_64__) static const char * flatpak_get_kernel_arch (void) { @@ -226,6 +226,8 @@ return "x86_64"; #elif defined(__aarch64__) return "aarch64"; +#elif defined(__sw_64__) + return "sw_64"; #elif defined(__arm__) #if G_BYTE_ORDER == G_LITTLE_ENDIAN return "arm"; @@ -243,6 +245,9 @@ #ifdef SCMP_ARCH_AARCH64 static const guint32 seccomp_aarch64_extra_arches[] = { SCMP_ARCH_ARM, 0 }; #endif +#ifdef SCMP_ARCH_SW_64 +static const guint32 seccomp_sw_64_extra_arches[] = { SCMP_ARCH_SW_64, 0 }; +#endif static inline void cleanup_seccomp (void *p) @@ -402,6 +407,13 @@ extra_arches = seccomp_aarch64_extra_arches; } #endif +#ifdef SCMP_ARCH_SW_64 + else if (strcmp (arch, "sw_64") == 0) + { + arch_id = SCMP_ARCH_SW_64; + extra_arches = seccomp_sw_64_extra_arches; + } +#endif /* We only really need to handle arches on multiarch systems. * If only one arch is supported the default is fine */