-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Daemon: do not timeout when running under wayland #213
Conversation
To test, start up a wayfire session (or any other wlroots compositor) and run From the panel menu, go to System->Preferences->Look and Feel->Popup Notifications and send a test notification or just run |
src/daemon/daemon.c
Outdated
return; | ||
|
||
daemon->exit_timeout_source = g_timeout_add_seconds(IDLE_SECONDS, do_exit, NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use X11, it shouldn't be removed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks like an error left over from earlier experiments, I will fix that now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed that error, now we just have the return if not running under x11, should be no change in x11 behavior now. THANK YOU for catching that,it was a leftover from my first experiments and was not supposed to be part of the pushed commit.
24afeb4
to
9f4bcae
Compare
There was already an PR in 2013 to remove dbus-activation in general #10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No testing, it will not affect X11
I am not sure if it is a good idea to disable the timeout for wayland because when using a display-manager to start wayfire session m-d-n works out of box. Also the |
One advantage to remove dbus-activation in general like in the old PR and starting the daemon via autostart folder, is to avoid conflicts with other installed notification daemons. |
As a proof-of-concept i made a rework of the old PR #214 |
Should we close this in favor of #214 which includes its functionality, keep it open but mark the wayland change as temporary in the commit message and comment in the code, or something else? |
@lukefromdc |
OK, I will mark this in the message and code as potentially temporary and keep it open. We don't yet know the details of how dbus interaction will work in the finished mate-wayland session |
*We need to keep running in current wayland sessions, this might change in the future *Use of timeout to reduce the number of running daemons may be possible in a future wayland session but not now when running a wayland session from a tty
9f4bcae
to
1499af1
Compare
I have changed the comments in the code and the commit message to indicate this could be temporary. Note that x11 behavior should be entirely unaffected by this PR |
When running in any current wayland session we need to keep the daemon alive as restarting it when a notification is sent does not work.