-
-
Notifications
You must be signed in to change notification settings - Fork 620
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]: conky: can't parse hex color 'lightgrey' #1868
Comments
How are you installing conky? Are you compiling it yourself from source? Most likely you need to install gperf for the colour lookups to work. Currently we allow conky to compile without gperf, although it prints a warning. We should just make it a required dependency to prevent backward-incompatible silent failures like this. It's in most (if not all) of the major distros already, including macOS, so I think it's reasonable to just make it a hard requirement. |
Rather than allowing the build to continue without gperf, we should fail with an error so that the colour behaviour does not change in a backward incompatible manner. The old colour behaviour should continue to work going forward. This resolves #1868.
Rather than allowing the build to continue without gperf, we should fail with an error so that the colour behaviour does not change in a backward incompatible manner. The old colour behaviour should continue to work going forward. This resolves #1868.
Yes, I'm building it from source.
Thanks |
Same here from the official Archlinux repositories.
|
Install gperf. PKGBUILD of |
Adding gperf in PKGBUILD's makedepends and recompiling fixes the issue. Thanks @Caellian |
I have gentoo and gperf is installed. Nevertheless I still need to use hex codes. |
If you're trying to use one of supported colors with the latest conky it should work. Gperf can't be disabled anymore and conky won't compile without it. If you're using a prebuilt binary, compile it yourself. Gperf is only required at compile time, i.e. having it installed at runtime won't affect anything. |
Since I am using gentoo, gperf is obviously compiled from source. Is there a minimum version required ? I have the version 3.1. |
@Caellian So, it should be either |
@fvalenduc Don't think so. The latest release is 3.1. Try using the supported colors as mentioned above. |
Lookup from the table should ignore color letter case. So any of those names and different capitalizations of them should work (i.e. If it doesn't, try building conky yourself bc package maintainers sometimes don't notice/handle changes like this the best (which is why gperf is no longer optional (packages didn't have it while being built which caused bug reports)). |
If you have gentoo then emerge conky with use-flag 'colour-name-map'...;)...and that work's for me. hint: |
Indeed, setting this use flag solve the problem. |
What happened?
When updating to 1.20.2 my conky window was using red color despite that I had my previous .conkyrc file with most colors in white, some black and some grey.
On launching from the console the error:
conky: can't parse hex color 'lightgrey'
shows up for multiple colors.
Using colorN (like color3) instead of the name seems to work.
This worked in 1.20.0 and I'm pretty sure it did in 1.20.1.
The only thing I think it might be related is this change
Version
1.20.2
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: