Skip to content

Trailing comments are no longer accepted #626

@BlackCapCoder

Description

@BlackCapCoder

If a line in the config file ends with a comment it is ignored. This is a regression from the last version I had of dunst, whatever that was (I'm on Arch Linux).

[urgency_normal]
    background = "#0A0A0B" # BG
    foreground = "#86ace1" # FG
> dunst -- version
Dunst - A customizable and lightweight notification-daemon 1.4.0 (2019-03-30)

> dunst &
> notify-send test
WARNING: Invalid color string: '"#86ace1" # FG'
WARNING: Invalid color string: '"#0A0A0B" # BG'
WARNING: Invalid color string: '"#86ace1" # FG'                                                                                                     
WARNING: Invalid color string: '"#0A0A0B" # BG'

Visually dunst pops up with both the foreground and background color being black.

The reason this is causing me issues is that I have this tucked away in a script somewhere:

sed -i "s/^.*# BG/    background = \"$color0\" # BG/g;s/^.*# FG/    foreground = \"$foreground\" # FG/g;" ~/.config/dunst/dunstrc

IE: It is useful to have those trailing comments there to be able to locate the lines with tools that only consider a single line at a time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions