2022-06-07 10:58:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
APPDIR="$(dirname "$(readlink -f "${0}")")"
|
|
|
|
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"
|
2024-10-10 10:19:17 +00:00
|
|
|
export GST_PLUGIN_PATH_1_0="${GST_PLUGIN_PATH}"
|
|
|
|
export GST_PLUGIN_SYSTEM_PATH="${GST_PLUGIN_PATH}"
|
|
|
|
export GST_PLUGIN_SYSTEM_PATH_1_0="${GST_PLUGIN_PATH}"
|
|
|
|
export LD_LIBRARY_PATH="${APPDIR}/usr/lib/:${APPDIR}/usr/lib/nss:${LD_LIBRARY_PATH}"
|
2022-06-07 10:58:06 +00:00
|
|
|
export QT_QPA_PLATFORM="xcb"
|
2024-10-10 10:19:17 +00:00
|
|
|
# TODO: Remove once qt 5.15.2 support is dropped
|
|
|
|
# Fixing bug: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468
|
|
|
|
export QTWEBENGINE_CHROMIUM_FLAGS="${QTWEBENGINE_CHROMIUM_FLAGS} --disable-seccomp-filter-sandbox"
|
|
|
|
export QTWEBENGINEPROCESS_PATH="${APPDIR}/usr/bin/QtWebEngineProcess"
|
2022-06-07 10:58:06 +00:00
|
|
|
|
|
|
|
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/status-desktop" "$@"
|