Closed gloaming closed 4 years ago
Can you also change printf("ERROR: %s\n",e.what());
on line 532 to printf("Error creating directory: %s\n",e.what());
to make it clearer, otherwise LGTM.
Sure! However, I only realised recently that the program doesn't actually read the binary from ~/.waifu2x
- it gets overwritten each time. I guess the idea is that the user should manually copy the binary into the install dir?
If so, I think we should add a message to that effect, because I had no idea :) Furthermore, on NixOS, the user can't move the binary into the Nix store, so we need to read the binary from ~/.waifu2x
to make it fast.
If that makes sense to you, I can look into making a second PR.
@gloaming the kernel overwriting PR is already being worked on in keep-kernel-merge, but otherwise my required changes are still standing.
Sorry about that, pushed now.
Bump
I'll look at this in a bit it may also conflicts with #207
Recover from attempt to generate binary on a read-only file system, e.g. when running on NixOS.