From dfe4ccae362b5bd9c699802aa8ecdeaae03f39da Mon Sep 17 00:00:00 2001 From: Taqi Raza Date: Wed, 24 Jan 2024 01:13:42 +0500 Subject: [PATCH] extensions/desktop: common/init: don't preload bindtextdomain for wine snaps fixes what #3738 couldn't --- extensions/desktop/common/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/desktop/common/init b/extensions/desktop/common/init index b928cda6a9..456555db1e 100644 --- a/extensions/desktop/common/init +++ b/extensions/desktop/common/init @@ -79,7 +79,7 @@ export SNAP_LAUNCHER_ARCH_TRIPLET="$ARCH" if ! grep -qs "^\s*confinement:\s*classic\s*" "$SNAP/meta/snap.yaml"; then if [ -f "$SNAP/lib/$ARCH/bindtextdomain.so" ]; then export LD_PRELOAD="$LD_PRELOAD:$SNAP/\$LIB/bindtextdomain.so" - elif [ -f "$SNAP/gnome-platform/lib/$ARCH/bindtextdomain.so" ]; then + elif [ -f "$SNAP/gnome-platform/lib/$ARCH/bindtextdomain.so" ] && ! grep -qs "^\s*default-provider:\s*wine-platform-runtime*" "$SNAP/meta/snap.yaml"; then export LD_PRELOAD="$LD_PRELOAD:$SNAP/gnome-platform/\$LIB/bindtextdomain.so" fi fi