fix(config): ensure apps.json is writeable (#4249)

This commit is contained in:
Sandro 2025-10-26 03:59:32 +01:00 committed by GitHub
commit f1a667532b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1045,6 +1045,11 @@ namespace config {
// TODO: Android can possibly support this
if (!fs::exists(stream.file_apps.c_str())) {
fs::copy_file(SUNSHINE_ASSETS_DIR "/apps.json", stream.file_apps);
fs::permissions(
stream.file_apps,
fs::perms::owner_read | fs::perms::owner_write,
fs::perm_options::add
);
}
#endif