This reverts commit bc095d5c83.
Sandboxing XDG_DATA_DIRS, while can fix the crash due to share/mime,
on the other hand makes impossible to call share/applications
associated with such mimes on host.
So, since we bumped the AppImage to Debian Trixie so the Glib
crash due to mime is gone, we can (and should) revert the
wrong sandboxing without problems.
20 lines
531 B
Bash
20 lines
531 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -z "$APPDIR" ]; then
|
|
export APPDIR="$(dirname "$(readlink -f "${0}")")"
|
|
echo "Running without type2-runtime. AppDir is $APPDIR"
|
|
fi
|
|
|
|
|
|
## Minimum runtime paths. See: #13527 and #13603
|
|
export PATH="${APPDIR}/usr/bin/:$PATH"
|
|
unset LD_PRELOAD
|
|
unset LD_LIBRARY_PATH
|
|
export XDG_DATA_DIRS="${APPDIR}/usr/share/:$XDG_DATA_DIRS"
|
|
|
|
|
|
## Other needed runtime paths (added by 3_dist-gimp-goappimage.sh)
|
|
### FIXME: We need to run on squash-fs dir due to LD linux interpreter. See 3_dist-gimp-goappimage.sh
|
|
cd "$APPDIR"
|