Skip to content

Commit

Permalink
extensions/desktop: common/init: don't preload bindtextdomain for win…
Browse files Browse the repository at this point in the history
…e snaps

fixes what canonical#3738 couldn't
  • Loading branch information
mmtrt committed Dec 20, 2023
1 parent 1e28514 commit 51cd922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/desktop/common/init
Original file line number Diff line number Diff line change
Expand Up @@ -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 "wine-platform-runtime.*" "$SNAP/meta/snap.yaml"; then
export LD_PRELOAD="$LD_PRELOAD:$SNAP/gnome-platform/\$LIB/bindtextdomain.so"
fi
fi

0 comments on commit 51cd922

Please sign in to comment.