Some checks failed
Test / rust-clippy (push) Failing after 12m20s
Test / rust-tests (push) Has been cancelled
Test / rust-fmt-check (push) Successful in 1m50s
Test / frontend-typecheck (push) Has been cancelled
Test / frontend-tests (push) Has been cancelled
Test / wiki-sync (push) Has been cancelled
Test / rust-clippy (pull_request) Has been cancelled
Test / rust-tests (pull_request) Has been cancelled
Test / frontend-typecheck (pull_request) Has been cancelled
Test / frontend-tests (pull_request) Has been cancelled
Test / wiki-sync (pull_request) Has been cancelled
Test / rust-fmt-check (pull_request) Has been cancelled
Include the currently present squashfs-root application bundle files so the branch contains all local workspace changes. Made-with: Cursor
18 lines
1.2 KiB
Bash
18 lines
1.2 KiB
Bash
#! /usr/bin/env bash
|
|
|
|
gsettings get org.gnome.desktop.interface gtk-theme 2> /dev/null | grep -qi "dark" && GTK_THEME_VARIANT="dark" || GTK_THEME_VARIANT="light"
|
|
APPIMAGE_GTK_THEME="${APPIMAGE_GTK_THEME:-"Adwaita:$GTK_THEME_VARIANT"}" # Allow user to override theme (discouraged)
|
|
|
|
export APPDIR="${APPDIR:-"$(dirname "$(realpath "$0")")"}" # Workaround to run extracted AppImage
|
|
export GTK_DATA_PREFIX="$APPDIR"
|
|
export GTK_THEME="$APPIMAGE_GTK_THEME" # Custom themes are broken
|
|
export GDK_BACKEND=x11 # Crash with Wayland backend on Wayland - We tested it without it and ended up with this: https://github.com/tauri-apps/tauri/issues/8541
|
|
export XDG_DATA_DIRS="$APPDIR/usr/share:/usr/share:$XDG_DATA_DIRS" # g_get_system_data_dirs() from GLib
|
|
export GSETTINGS_SCHEMA_DIR="$APPDIR//usr/share/glib-2.0/schemas"
|
|
export GTK_EXE_PREFIX="$APPDIR//usr"
|
|
export GTK_PATH="$APPDIR//usr/lib/aarch64-linux-gnu/gtk-3.0:/usr/lib64/gtk-3.0:/usr/lib/x86_64-linux-gnu/gtk-3.0"
|
|
export GTK_IM_MODULE_FILE="$APPDIR//usr/lib/aarch64-linux-gnu/gtk-3.0/3.0.0/immodules.cache"
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="$APPDIR//usr/lib/aarch64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
|
export GIO_EXTRA_MODULES="$APPDIR/usr/lib/aarch64-linux-gnu/gio/modules"
|