mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
Terminal: Unveil the user's config file
I mistakenly thought that we were keeping the config file open, but we don't. So we'll need to unveil the config path in case we need to write out a new configuration.
This commit is contained in:
parent
3097eb4717
commit
efbd1620d9
1 changed files with 5 additions and 0 deletions
|
@ -300,6 +300,11 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (unveil(config->file_name().characters(), "rwc")) {
|
||||
perror("unveil");
|
||||
return 1;
|
||||
}
|
||||
|
||||
unveil(nullptr, nullptr);
|
||||
|
||||
config->sync();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue