The cache directory is created during installation, but considering it is cache, it should be considered volatile and may be wiped by users.
Before writing the cache.json, there should be a check for the existence of /var/cache/nwg-hello and if it is missing, there should be an attempt to create it.
I just realised that this can not work, nwg-hello runs a greeter, you need root privileges to create a directory in /var/cache, so only thing you can do is complain, which nwg-hello does in the logs.
The cache directory is created during installation, but considering it is cache, it should be considered volatile and may be wiped by users. Before writing the
cache.json
, there should be a check for the existence of/var/cache/nwg-hello
and if it is missing, there should be an attempt to create it.