Skip to content

Commit fdfbd3c

Browse files
author
Andreas Poulsen
committed
Merge branch 'feature/revert_to_old_activate_shortcuts' into 'master'
Revert to old version of activate shortcuts, the new version had problems with autologout See merge request os2borgerpc/os2borgerpc-scripts!184
2 parents 206a5ad + abfb7e8 commit fdfbd3c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

os2borgerpc/desktop/desktop_activate_shortcuts.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ rm --force /home/$SHADOW/.config/autostart/gio-fix-desktop-file-permissions.desk
1616
cat << EOF > "$GIO_SCRIPT"
1717
#! /usr/bin/env sh
1818
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"
19+
# gio needs to run as the user + dbus-launch, we have this script to create it and kill it afterwards
20+
export \$(dbus-launch)
21+
DBUS_PROCESS=\$\$
2122
2223
for FILE in /home/$USER/Skrivebord/*.desktop; do
2324
gio set "\$FILE" metadata::trusted true
2425
done
2526
27+
kill \$DBUS_PROCESS
2628
EOF
2729

2830
# Script to activate programs on the desktop

0 commit comments

Comments
 (0)