-
Notifications
You must be signed in to change notification settings - Fork 350
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
No notifications showing up after logging out and logging in. #851
Comments
How do you logout of your session while continuing to run sway? Do you lock the screen or do you logout and login (stop and start a new sway instance)? |
No I do exit sway and it stops running, but somehow Dunst still keeps running, even though it is started by sway. I'm not sure if that's a sway bug in itself. |
My first theory was that the environment variables changed and that it is the reason why the old dunst doesn't work anymore, but that theory falls apart when you see Dunst still receives notifications from dbus |
Well, this might be an interesting point in overall combination with the current startup problems of the systemd unit. If a DBus client accesses If we fix the systemd unit properly to bind dunst to the graphical session correctly, we might have fixed this smoothly and dunst stops, when the graphics server (may it be Xorg or wayland) stops. I tested some builds yesterday, but without any success yet. (Disclaimer: Since moving to sway, I've got a workspace |
Yeah there was an issue about that, although I couldn't confirm the bug.
|
Note that fixing the systemd unit is only a workaround. This issue is about starting dunst with sway and not using dbus/systemd to start it. I haven't tested what happens when I use the systemd unit. |
It seems most reasonable to me to just make sure dunst exits upon logging out. I think what could be messing up the drawing after logging out is that there is a different sway instance, but dunst still has state from the other instance (for example surfaces that it got).
|
So, is this bug fixed or should we fix it ourselves with one of those options? |
You should try one of the two solutions mentioned in my last comment. I haven't tried them yet, but let me know if it works |
Turns out, this can be fixed by dunst. Wayland clients are able to detect when the compositor stops through the wl_display. I'm working on a fix |
@bebehei I've asked the sway maintainer about this and there seems to be no support for any kind of session management. If you want systemd units to work with graphical-session.target, you have got to do that yourselves. So make a systemd unit out of sway or start some sort of session unit from your sway config. But anyways, that's not needed for dunst anymore, since with the above linked PR it should automatically exit when you exit sway. |
The fix has been merged |
Reproduction steps
I suspect this has something to do with wayland objects changing from one session to the other.
Installation info
AUR
Arch Linux
Sway
(Wayland)The text was updated successfully, but these errors were encountered: