-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
look for DBUS_SESSION_BUS_ADDRESS if not set
if DBUS_SESSION_BUS_ADDRESS is not set (like if running from crontab) we end up with a fresh dbus session. This breaks things like access to secret service (password manager). If DBUS_SESSION_BUS_ADDRESS is empty, look in several locations inside XDG_RUNTIME_DIR (/run/user/<uid>/) and if an existing dbus session bus address is found, update DBUS_SESSION_BUS_ADDRESS with that and continue.
- Loading branch information
1 parent
0c07171
commit 22e5df4
Showing
2 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters