We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a7afe8 commit 57ab848Copy full SHA for 57ab848
sas.sh
@@ -12,7 +12,7 @@ if [ "$SAS_DEBUG" = 1 ]; then
12
set -x
13
fi
14
15
-VERSION=1.7
+VERSION=1.8
16
17
ADD_DIR=""
18
ALLOW_XDG_OPEN=1
@@ -103,6 +103,13 @@ DEFAULT_SYS_DIRS="
103
/usr/share
104
"
105
106
+# make sure apps prefer to use portals
107
+if [ -x /usr/libexec/xdg-desktop-portal ] \
108
+ || command -v xdg-desktop-portal 1>/dev/null; then
109
+ export GIO_USE_PORTALS="${GIO_USE_PORTALS:-1}"
110
+ export GTK_USE_PORTAL="${GTK_USE_PORTAL:-1}"
111
+fi
112
+
113
_cleanup() {
114
set +u
115
if [ "$IS_TRUSTED_ONCE" = 1 ]; then
0 commit comments