-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
[Bug]: 1.18.1 and later Regression in passing colors to graphs, fails to parse ${colorN} values #1469
Comments
There was indeed a regression of color parsing in v1.18.1, but I believe it was fixed in #1447 which was released in v1.18.3. As far as I'm aware, prior to v1.18.1, the syntax you provide parses incorrectly but while still allowing the graph to display in default colors rather than the specified ones. For example, the below conkyrc displays a white graph when tested against v1.17.0 and v1.18.0. Is there a conky version where you're seeing the
One workaround, which worked in older conky versions as well the current one is to use templates:
|
@bi4k8 It looked like ${colorN} was working for me in graphs, but now I think it was an idea I got by mistake. What most probably was happening was that it was using color0 as default color and displaying graphs in that one, which was indistinguishable from what I was expecting. Although with 1.18.1 and higher it is now defaulting to red, which is different from what I expect. So my confusion. I'm not sure what is the correct behaviour. The description of the syntax gave me the idea that using ${colorN} variables in graphs was acceptable, but if I' wrong I'll just change my configuration. The reason I wrote this bug report is that I'm maintaining the FreeBSD port of conky and I have been holding back the update to 1.18.1 and later due to this change in behaviour, counting it as a regression. Depending if it actually is a regression, and on the proposed solution I will decide what to do in the port. |
The If the syntax description is misleading, we should update it to clarify the actual behavior. The latest versions of Conky use red to highlight that the color is not what the user intended, and an error message is printed:
|
Thanks for the clarifications. I was clearly doing something wrong with my configuration. I'm not sure I can state the documentation is wrong. It says nowhere that ${colorN} can be used as any other variable, it was an idea I got, and just by chance it partly worked so I thought I was right. I'm closing this since there is no real regression. Sorry for the noise. |
What happened?
With v 1.18.1 the new code to handle colors (committed in 5e98c49) uses a different parsing logic for colors and will not recognize the
${colorN}
options that it used to accept.I thing this is a regression that should be fixed.
The behaviour I now get is that these colors are ignored and default ones get used. (red)
My first idea on how to fix it is to add code to
parse_colour()
to understand${colorX}
variables, by doing something like (pseudocode):Would such a patch be acceptable?
P.S. I'm running FreeBSD, which is not available in the OS selector
Version
1.18.1
Which OS/distro are you seeing the problem on?
Linux (other)
Conky config
Stack trace
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: