nwg-piotr / nwg-hello

GTK3-based greeter for greetd written in python
MIT License
35 stars 5 forks source link

Bug: Ensure `/var/cache/nwg-hello` exists #13

Closed loaidheach closed 4 months ago

loaidheach commented 4 months ago

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.

loaidheach commented 4 months ago

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.