Files
status-app/scripts/xdg-open-wrapper.sh
jakub c5d2abbe3a fix(appimage): bundle dash shell for xdg-open wrapper
This fixes an error on NixOS when trying to Connect a dApp via Status Connector
which should open the Status Wallet Connector chrome plugin page but fails with:
```
/nix/store/1q9lw4r2mbap8rsr8cja46nap6wvrw2p-bash-interactive-5.2p37/bin/bash: symbol lookup error:
/nix/store/1q9lw4r2mbap8rsr8cja46nap6wvrw2p-bash-interactive-5.2p37/bin/bash: undefined symbol: rl_trim_arg_from_keyseq
```
Resolves:
https://github.com/status-im/status-desktop/issues/18451

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2025-07-29 15:19:05 +02:00

7 lines
272 B
Bash
Executable File

#!/usr/bin/env sh
# Avoid 'undefined symbol: rl_trim_arg_from_keyseq' from newer Bash.
unset LD_LIBRARY_PATH
# Remove AppImage path to avoid recursive loop of xdg-open executions.
PATH=$(echo "${PATH}" | tr ':' '\n' | grep -v "${APPDIR}" | tr '\n' ':')
exec xdg-open "$@"