fix(config): ensure apps.json is writeable (#4249)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user