Yet another dbus quick fix.
This commit is contained in:
parent
0e7b9da09b
commit
3194859f55
@ -5,4 +5,4 @@ source /etc/archbox.conf
|
|||||||
DBUS_ADDRESS="$(cat /tmp/archbox_dbus_session_address)"
|
DBUS_ADDRESS="$(cat /tmp/archbox_dbus_session_address)"
|
||||||
COMMAND=$(echo $@ | tr ' ' '\ ')
|
COMMAND=$(echo $@ | tr ' ' '\ ')
|
||||||
[[ $1 = "enter" ]] && chroot $CHROOT /sbin/env DBUS_SESSION_BUS_ADDRESS=$DBUS_ADDRESS /bin/su $USER \
|
[[ $1 = "enter" ]] && chroot $CHROOT /sbin/env DBUS_SESSION_BUS_ADDRESS=$DBUS_ADDRESS /bin/su $USER \
|
||||||
|| chroot $CHROOT /bin/su -c "env $DBUS_ADDRESS $COMMAND" $USER
|
|| chroot $CHROOT /bin/su -c "env DBUS_SESSION_BUS_ADDRESS=$DBUS_ADDRESS $COMMAND" $USER
|
||||||
|
Loading…
Reference in New Issue
Block a user