[RFC] config reload mechanism#1350
Conversation
|
@zappolowski it seems like the ci is having a problem with arch maybe it's https://bbs.archlinux.org/viewtopic.php?id=276422? |
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1350 +/- ##
==========================================
- Coverage 66.08% 65.37% -0.72%
==========================================
Files 50 50
Lines 8247 8326 +79
Branches 958 1000 +42
==========================================
- Hits 5450 5443 -7
- Misses 2797 2883 +86
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
mostly done. I'll do some more checks and maybe add a functional test |
|
Thanks for picking this up! I never got it to work properly when I tried it. But when the code is structured well, it should not be too hard to implement |
I made some updates. The only thing I am a bit unsure is the reapply of rules |
|
Basically I added a rule struct inside the notification that is allocated and filled when we try to apply a rule to change a value. Then when we reload we reapply that rule to "revert" the original state. @fwsmit does this solve the problem you said in the comments? |
|
@fwsmit @zappolowski I finished. Also updated the docs. Can I merge this? wanted to release a version in this month what do you think? |
|
Looks good to me! |
|
I'll merge then |
|
seems like running |
How so? It should just reapply the config to the notification |
Error org.freedesktop.DBus.Error.UnknownMethod: No such method “ConfigReload” |
this means that the running version of dunst is not updated and doesn't have the reload patch. |
Dunst - A customizable and lightweight notification-daemon v1.11.0-76-gc1cc6d1 |
you are using master branch right? You have to make sure that the program actually running is this one. sometimes the build systems/package managers start a different binary than the one in path |
|
On my Arch installation, |
|
@B1ack3ye this feature is not yet released. If you want to it you either have to build it yourself or use |
yeah, which is what I'm thinking, however afterwards no notifications show up. For now I just |
do you mean when reloading all the notifications are closed? or when new notifications come nothing show up? it would be very helpful to provide a debug log (dunst -verbosity debug) |
Both. current notifications close, and no new notifications show up.
sure, here u go. https://paste.rs/xSpVi.txt in this log, i simply launched dunst with verbosity, triggered my volume notification, and then did a |
Are you using wayland right? Since I can only test on xorg maybe this is a wayland only bug. could you try using dunst in Xwayland mode to see if this works there? |
yep, I'm running on wayland. |
|
Finally had some time to test this (I also forgot about this issue lol)
|
did you try with master? I discovered some nasty mem errors that may be related |
i did indeed see your pr and tested to check if it made any change. sadly it hasn't made any change. |
I see. this needs more testing but for now I have to release anyway with this bug because of #1411 Since this pr is now closed could you please create an issue with the error description so I can keep track of it? thanks |
I wanted to add a way to reload the config files. part of the code is taken from #968.
In respect to #968 I added the ability to pass a list of config files to use to the dbus method. If none are passed it will use the old config list.
I noticed that the cmdline parser ignores multiple
-confoptions (without any acknowledgment of the fact). So I changed the behavior to accept a list of files.Summary
ConfigReload-confvaluesdunstctl reloadand completions