ntfd
ntfd copied to clipboard
IOERROR
using the config provided on github prevents the start up of ntfd with the error
Failed to read config file: hGetContents: invalid argument (invalid byte sequence)
Check what encoding you're using for the config file, it has to be UTF-8
It is indeed UTF-8
I'm not sure then, I can't reproduce :( Did you compile yourself ? Or a you using the binary from the release page ?
I used the binary provided in the AUR.
I still believe this is an encoding issue, are you using special characters (anything non ascii) in your config file ?
The way I'm parsing config files might be flawed '_'
Could also be caused by the default encoding, could you paste the output of the locale
command ?
I am using en_AU.UTF-8
I am having the same problem I think, it says the same error if I run ntfd &, but it also says that the
The name io.ntfd was not provided by any .service files
It could be an issue with the config files but I doubt it, I changed nearly nothing:
[openweathermap]
enabled = true
api_key = "file:~/.config/ntfd/openweathermap.txt"
city_id = "2756253"
notification_timeout = 10
notification_body = "Expected within the next 3 hours"
sync_frequency = 1800 # 30 minutes
display = "{{ temp_icon }} {{ temp_celsius }}°C {{ trend }} {{ forecast_icon }} {{ forecast_celsius }}°C"
Okay, I found that changing the locale through: $ localectl set-locale LANG=en_US.UTF-8
happened to fix the issue, thanks!
interestingly, I had the same problem but the fix didn't work on my end.