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
parent a7f03c25fd
commit f1a667532b

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