Skip to content

Commit 60cb836

Browse files
Make sure the config is writable after being copied
1 parent 458a4a5 commit 60cb836

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/config.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,11 @@ namespace config {
10451045
// TODO: Android can possibly support this
10461046
if (!fs::exists(stream.file_apps.c_str())) {
10471047
fs::copy_file(SUNSHINE_ASSETS_DIR "/apps.json", stream.file_apps);
1048+
fs::permissions(
1049+
stream.file_apps,
1050+
fs::perms::owner_read | fs::perms::owner_write,
1051+
fs::perm_options::add
1052+
);
10481053
}
10491054
#endif
10501055

0 commit comments

Comments
 (0)