Skip to content
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

notify-send not always working #28

Open
drws opened this issue Dec 6, 2020 · 0 comments
Open

notify-send not always working #28

drws opened this issue Dec 6, 2020 · 0 comments

Comments

@drws
Copy link

drws commented Dec 6, 2020

On one of my machines where MATE desktop enviromnent is used, randrctl fails to display the desktop notification on profile switch. I think it has to do with DBUS_SESSION_BUS_ADDRESS environment variable, similar to currently-implemented DISPLAY and XAUTHORITY retrieval and use. For more information please see this Wiki paragraph and this implementation should probably also be helpful.

On the same machine randrctl auto is working properly and displays the notification while sudo randrctl auto works as well, but doesn't display the notification (I'm using the system-wide configuration directory /etc/randrctl).

I have tried to manually set/export DBUS_SESSION_BUS_ADDRESS in randrctl config's post_switch hook, but couldn't get it to work. It would probably work with an intermediate shell script instead of directly calling notify-send, but I thought it might be interesting for solving in randrctl itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant