fix(config): ensure apps.json is writeable (#4249)
This commit is contained in:
parent
a7f03c25fd
commit
f1a667532b
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue