pywal icon indicating copy to clipboard operation
pywal copied to clipboard

.cache\wal\colos.json generated with broken json on Windows

Open npdev453 opened this issue 3 years ago • 1 comments

On windows pywal gen incorrect unparsable json for colors.json example:

{
    "wallpaper": "C:\Users\np\AppData\Local\Temp\2.jpg",
    "alpha": "100",
}

what should to be:

{
    "wallpaper": "C:\\Users\\np\\AppData\\Local\\Temp\\2.jpg",
    "alpha": "100",
}

npdev453 avatar Nov 24 '20 10:11 npdev453

possible fix https://github.com/dylanaraps/pywal/pull/564

but I`m not fluent in python, imm json should be serialized correctly before it exported to file (in Node.js its JSON.stringify)

npdev453 avatar Nov 24 '20 10:11 npdev453

Seems to be fixed

npdev453 avatar Aug 03 '23 02:08 npdev453