Skip to content

dunstctl reload from #1350 stops dunst from working on native wayland #1434

Closed

Description

@fxzzi

Hey,

As I mentioned in #1350 , the dunstctl reload mechanism does not seem to work correctly when running dunst through wayland native. It seems to reload fine if a notification is not visible on screen, but if a reload occurs whilst a notification is visible, no new notifications will show up for some reason. They still show in the verbose logs.

It does however work fine on X11 and XWayland.

As mentioned in the comments there, I tried the latest master with no change.

The logs after running dunst -verbosity debug, and triggering the bug are as follows: https://paste.rs/yrEGc.txt

If any more info is required please do not hesitate to let me know. I'll be happy to provide anything else.

Activity

  1. changed the title [-]`dunstctl reload` from #1350 stops dunst from working on native waylandd[/-] [+]`dunstctl reload` from #1350 stops dunst from working on native wayland[/+] on Jan 20, 2025
  2. bynect commented on Jan 21, 2025

    @bynect
    Contributor

    Probably something is wrong in the wayland deinit/init process

  3. bynect commented on Mar 8, 2025

    @bynect
    Contributor

    so no window shows up if you reload with open notification? but is the notification itself closed? maybe wayland doesn't like that we close the connection with the compositor when there are pending windows?

  4. fxzzi commented on Mar 8, 2025

    @fxzzi
    Author

    Yeah, that's correct. If a dunst window / notification is open at the time of reloading, it then fails to create new windows. Maybe we need to make sure all the notifications are closed first before reloading? Force all notifications to close before reload?

  5. bynect commented on Mar 8, 2025

    @bynect
    Contributor

    I'm not an expert in wayland but I'll look into it. Hopefully its not some obscure protocol thing

  6. added 2 commits that reference this issue on Mar 17, 2025
    4e0cec5
    093e94e
  7. pslldq commented on Mar 17, 2025

    @pslldq
    Contributor

    @fxzzi I've created a fix for this issue in #1458 . Feel free to check, if it also fixes the issue on your side 😏

  8. bynect commented on Mar 17, 2025

    @bynect
    Contributor

    @fxzzi I've created a fix for this issue in #1458 . Feel free to check, if it also fixes the issue on your side 😏

    Thank you so much for looking into it 👍

  9. fxzzi commented on Mar 20, 2025

    @fxzzi
    Author

    Can confirm this fixed the issue for me and dunstctl reload is now working correctly whilst a notification is visible on screen. I tested it by applying the patch to the latest TAG (not master) like so on NixOS:

          services.dunst.package = pkgs.dunst.overrideAttrs {
            patches = [
              (pkgs.fetchpatch {
                # patch to fix `dunstctl reload` on native wayland dunst
                name = "1458.patch";
                url = "https://github.com/dunst-project/dunst/pull/1458.patch";
                sha256 = "sha256-uLY0atUjHRy7hCkAoEkWRk5kl8VvO6nygwuK5aqaG5c=";
              })
            ];
          };

    Thank you for your work :)

    P.S. also working with drop-in configs (i use it for theming and it reloads them perfectly too)

  10. bynect commented on Mar 20, 2025

    @bynect
    Contributor

    thanks fxzzi for the feedback, I will merge the pr shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions