We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 206a5ad + abfb7e8 commit fdfbd3cCopy full SHA for fdfbd3c
os2borgerpc/desktop/desktop_activate_shortcuts.sh
@@ -16,13 +16,15 @@ rm --force /home/$SHADOW/.config/autostart/gio-fix-desktop-file-permissions.desk
16
cat << EOF > "$GIO_SCRIPT"
17
#! /usr/bin/env sh
18
19
-# gio needs to run as the user with correct dbus settings
20
-export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u user)/bus"
+# gio needs to run as the user + dbus-launch, we have this script to create it and kill it afterwards
+export \$(dbus-launch)
21
+DBUS_PROCESS=\$\$
22
23
for FILE in /home/$USER/Skrivebord/*.desktop; do
24
gio set "\$FILE" metadata::trusted true
25
done
26
27
+kill \$DBUS_PROCESS
28
EOF
29
30
# Script to activate programs on the desktop
0 commit comments