-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_linux.sh
More file actions
executable file
·21 lines (20 loc) · 1 KB
/
Copy pathrun_linux.sh
File metadata and controls
executable file
·21 lines (20 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# Run on Linux with X11 backend to avoid Gdk-CRITICAL (gdk_device_get_source)
# when the cursor enters/leaves the window. On Wayland those warnings are harmless.
#
# If build fails with: Failed to find any of [ld.lld, ld] in .../snap/flutter/.../llvm-10/bin
# the Flutter snap ships an incomplete LLVM bin dir. Fix: install Flutter outside snap
# (git clone https://github.com/flutter/flutter.git + add .../flutter/bin to PATH), or see
# https://github.com/canonical/flutter-snap/issues/123
#
# flutter_secure_storage_linux needs libsecret headers at compile time.
if ! pkg-config --exists libsecret-1 2>/dev/null; then
echo "Querya Linux build requires libsecret-1 (CMake: libsecret-1>=0.18.4)." >&2
echo "Install development package, then retry:" >&2
echo " Debian/Ubuntu: sudo apt-get install libsecret-1-dev" >&2
echo " Fedora/RHEL: sudo dnf install libsecret-devel" >&2
echo " Arch: sudo pacman -S libsecret" >&2
exit 1
fi
export GDK_BACKEND=x11
exec flutter run -d linux "$@"