Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win: ucrt64: fix non-admin shortcut launch on UCRT64 runtime
1) On UCRT64, std::filesystem::exists() interprets the credentials folder to not exist if the Users groups do not have folder read permissions, which results in a subsequent failure to create the already existing folder. 2) Similarly, non-admin shortcut launches may also throw an exception in boost::filesystem::create_directories() if the config folder has been deleted by the user after installation. Steps to reproduce: install Sunshine, quit Sunshine, delete config and then run launcher as non-admin. Fix 1) by setting User read access to the folder - but not its contents - so std::filesystem::exists() gives the expected result. Fix 2) by allowing non-privileged process to start the service even if no config was loaded, thus deferring config creation to service instance.
- Loading branch information