1
0
Fork 0

cronprofile: fix dbus address location

This commit is contained in:
Luca Bilke 2024-07-09 16:55:19 +02:00
parent 72f97e8d3c
commit 71581ed9ea
Signed by: luca
GPG Key ID: F6E11C9BAA7C82F5
1 changed files with 3 additions and 2 deletions

5
.local/share/cronprofile Normal file → Executable file
View File

@ -14,6 +14,7 @@ export XDG_CACHE_HOME="$HOME/.cache"
export XDG_STATE_HOME="$HOME/.local/state"
export PATH="$HOME/.local/libexec/cron:$PATH"
x="$(cat "$XDG_STATE_HOME/dbus_session_bus_address")"
export DBUS_SESSION_BUS_ADDRESS="$x"
. "$XDG_STATE_HOME/dbus"
export DBUS_SESSION_BUS_ADDRESS
export DISPLAY=:0