Skip to content

Commit f2c2f12

Browse files
Set XDG_DATA_DIRS
This is required by some applications to work. GLib uses `XDG_DATA_DIRS` in functions like `g_get_system_data_dirs()` https://developer.gnome.org/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-system-data-dirs
1 parent 5247f8d commit f2c2f12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

linuxdeploy-plugin-gtk.sh

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export APPDIR="${APPDIR:-"$(dirname "$(realpath "$0")")"}" # Workaround to run e
120120
export GTK_DATA_PREFIX="$APPDIR"
121121
export GTK_THEME="$APPIMAGE_GTK_THEME" # Custom themes are broken
122122
export GDK_BACKEND=x11 # Crash with Wayland backend on Wayland
123+
export XDG_DATA_DIRS="$APPDIR/usr/share:/usr/share:$XDG_DATA_DIRS" # g_get_system_data_dirs() from GLib
123124
EOF
124125

125126
echo "Installing GLib schemas"

0 commit comments

Comments
 (0)