-
Notifications
You must be signed in to change notification settings - Fork 348
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
Changing urgency by a rule does not affect color of message #484
Comments
Oh, err. Something went south in #428. Thanks for pointing this out.
Thank you! You're awesome! More people should know how to When looking at the commit, I see I've flipped the rule application and the default color assignment. This is not so nice. But I'm reluctant to fix it in favor of #328. We want to drop these Could you please use a workaround?
@tsipinakis I'd label this as |
As I mentioned in #328 initially I only intend to change the handling of the sections internally to be technically rules but also work in the same way in the config file, we can talk about deprecation later. Until then, this is definitely worth fixing but it'll probably have to wait a bit since this is a tough problem to solve and will probably required a rework of the rule system. A quick outline of the problem: Dunst currently parses rules in the order they are defined and doesn't "go back" to check something if an attribute is updated so what happens internally is this
What's missing is a step between 3-4 where it goes back and applies all attributes for critical urgency. It's simple to implement now when the I think I'm beginning to realise why the PS: We really need more tests, this is a prime example of an issue that could've been caught by a proper test suite |
I see your problem. Personally, I am in favor of threating the For the moment, the proposed workaround (using another rule to apply the colors again) works for me. |
This has been done in #803, so this issue can be closed when it's merged |
#803 has been merged though I'm experiencing the same problem as @fwsmit: |
@viktordanov I'm not having the problem, I just happened to implement the proposed solution in #803. |
Issue description
Use the default config and append the following rule:
Execute
notify-send Test
.The message is shown but with a blue color (like a normal message) instead of the red color for critical messages.
dunst -print
outputsSo the urgency is applied, but the colors are not changed accordingly.
This used to work with correctly with version 1.2. The commit which breaks this behavior seems to be 4bfae81.
Installation info
1.3.0 (2018-01-05)
package
Arch Linux
The text was updated successfully, but these errors were encountered: