mirror of
https://github.com/status-im/status-app.git
synced 2026-08-27 15:11:20 +00:00
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>
35 lines
1.2 KiB
Bash
Executable File
35 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
APPDIR="$(dirname "$(readlink -f "${0}")")"
|
|
export PATH="${APPDIR}/usr/bin:${PATH}"
|
|
export GST_PLUGIN_SCANNER="${APPDIR}/usr/lib/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner"
|
|
export GST_PLUGIN_PATH="${APPDIR}/usr/lib/gstreamer-1.0"
|
|
export GST_PLUGIN_PATH_1_0="${APPDIR}/usr/lib/gstreamer-1.0"
|
|
export GST_PLUGIN_SYSTEM_PATH="${APPDIR}/usr/lib/gstreamer-1.0"
|
|
export GST_PLUGIN_SYSTEM_PATH_1_0="${APPDIR}/usr/lib/gstreamer-1.0"
|
|
export LD_LIBRARY_PATH="${APPDIR}/usr/lib/:${APPDIR}/usr/lib/nss:${LD_LIBRARY_PATH}"
|
|
export QT_QPA_PLATFORM="xcb"
|
|
export QTWEBENGINE_DISABLE_SANDBOX=1
|
|
|
|
# Set up pcsc-lite environment
|
|
export PCSC_DRIVERS_DIR="${APPDIR}/usr/lib/pcsc/drivers"
|
|
export PCSCLITE_CONFIG_DIR="${APPDIR}/etc/reader.conf.d"
|
|
|
|
# Start pcscd
|
|
# warning: needs to be same as ipcdir in ci/Dockerfile
|
|
# https://salsa.debian.org/rousseau/PCSC/-/blob/master/meson.options?ref_type=heads#L36
|
|
PCSCD_RUN_DIR="/tmp/pcscd/run"
|
|
rm -rf "${PCSCD_RUN_DIR}"
|
|
mkdir -p "${PCSCD_RUN_DIR}"
|
|
echo "starting pcscd with ${APPDIR}/usr/bin/pcscd -f &"
|
|
"${APPDIR}/usr/bin/pcscd" -f &
|
|
|
|
DEFAULT_LANG=en_US.UTF-8
|
|
if [[ "$LANG" == "C.UTF-8" ]]
|
|
then
|
|
export LANG=$DEFAULT_LANG
|
|
else
|
|
export LANG="${VARIABLE:=$DEFAULT_LANG}"
|
|
fi
|
|
|
|
exec "${APPDIR}/usr/bin/nim_status_client" "$@"
|