Skip to content

Fix logging in icon code#1296

Merged
bynect merged 1 commit into
dunst-project:masterfrom
bynect:icon-log
Mar 1, 2024
Merged

Fix logging in icon code#1296
bynect merged 1 commit into
dunst-project:masterfrom
bynect:icon-log

Conversation

@bynect
Copy link
Copy Markdown
Contributor

@bynect bynect commented Feb 29, 2024

Remove extra newlines and move a string empty upwards

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 29, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.79%. Comparing base (b6a8a19) to head (9a9c74a).
⚠️ Report is 340 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1296      +/-   ##
==========================================
+ Coverage   64.46%   64.79%   +0.32%     
==========================================
  Files          48       48              
  Lines        7920     7962      +42     
==========================================
+ Hits         5106     5159      +53     
+ Misses       2814     2803      -11     
Flag Coverage Δ
unittests 64.79% <100.00%> (+0.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bynect bynect merged commit e5f188c into dunst-project:master Mar 1, 2024
@Rentib
Copy link
Copy Markdown

Rentib commented Mar 1, 2024

Was it expected that setting default_icon = "" uses an icon?

[urgency_normal]
  timeout = 10
  default_icon = ""

This for example still uses an icon for notifications with normal urgency.
The icon used is the default one.

@bynect
Copy link
Copy Markdown
Contributor Author

bynect commented Mar 1, 2024

Was it expected that setting default_icon = "" uses an icon?

[urgency_normal]
  timeout = 10
  default_icon = ""

This for example still uses an icon for notifications with normal urgency. The icon used is the default one.

What do you mean it uses the default icon? Also could you please open an issue

Also, is this something that happened after this commit?

@Rentib
Copy link
Copy Markdown

Rentib commented Mar 2, 2024

Was it expected that setting default_icon = "" uses an icon?

[urgency_normal]
  timeout = 10
  default_icon = ""

This for example still uses an icon for notifications with normal urgency. The icon used is the default one.

What do you mean it uses the default icon? Also could you please open an issue

Also, is this something that happened after this commit?

If you specify icon_theme in configuration file, then for all notifications dunst will use an icon from the theme, unless you configure it otherwise. If you check for example Papirus icons then dunst will use emblem-information icon I think.

Example config:

[global]
  enable_recursive_icon_lookup = true
  icon_theme = "Adwaita, Papirus"

@bynect
Copy link
Copy Markdown
Contributor Author

bynect commented Mar 2, 2024

Was it expected that setting default_icon = "" uses an icon?

[urgency_normal]
  timeout = 10
  default_icon = ""

This for example still uses an icon for notifications with normal urgency. The icon used is the default one.

What do you mean it uses the default icon? Also could you please open an issue

Also, is this something that happened after this commit?

If you specify icon_theme in configuration file, then for all notifications dunst will use an icon from the theme, unless you configure it otherwise. If you check for example Papirus icons then dunst will use emblem-information icon I think.

Example config:

[global]
  enable_recursive_icon_lookup = true
  icon_theme = "Adwaita, Papirus"

I don't get this behavior. Please open an issue including your dunst version and dunstrc so that I can investigate

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants