-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pacman hook #33
Comments
Hmm. That is probably because it will run as root which won't have access to the dbus session of the user. |
But I should definitely fix the panic 🙂 |
@dbrgn Can you try setting |
We can't set env vars in the hook files. Someone on Arch IRC suggested to either hardcode the UID (or make it configurable), or to try to detect users with an active login session (could maybe be detected through DBUS as well). |
Checking for D-Bus service presence of rfjakob/systembus-notify, and utilizing it to alert the user when available would resolve this issue. |
I found a solution:
This works perfectly fine if you run upgrades with Edit: If you hardcode it, it also works as a one-liner in the |
@rnestler great, it works! I'm not sure if this is something that could be part of the AUR package? (Or maybe just a separate package that depends on |
It's hard to write it in a generic way such that it works for all use cases. Something like this might work:
|
@emansom This looks interesting as well, but I don't use |
This hook runs reboot-arch-btw when linux is upgraded:
Unfortunately DBUS cannot be accessed from the hook right now:
The text was updated successfully, but these errors were encountered: