1
Fork 0
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:
Andreas Kling 2020-01-21 13:08:22 +01:00
parent 3097eb4717
commit efbd1620d9

View file

@ -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();