Files

15 lines
824 B
Bash
Executable File

#!/bin/bash
# The bundled Qt (5.12.8, from the flameshot AppImage) fails against this
# RHEL9's stack with "qt.qpa.xcb: could not connect to display" -- confirmed
# it's the bundled Qt itself at fault (same failure across two different
# flameshot AppImage versions using that same Qt build), not a missing
# library, X11/display, or flameshot-specific bug. Fix: run the extracted
# AppImage's own binary directly (bypasses its AppRun wrapper/bundled dynamic
# linker, which conflicts with LD_LIBRARY_PATH overrides) using the host's
# already-installed, working Qt 5.15.9 instead of the bundled one.
FLAMESHOT_DIR="/sf/bernina/applications/Flameshot/Flameshot-12.1.0-extracted"
LC_ALL=C \
QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib64/qt5/plugins/platforms \
LD_LIBRARY_PATH=/usr/lib64 \
"$FLAMESHOT_DIR/usr/bin/flameshot" "$@" &