mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +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
Notes:
sideshowbarker
2024-07-19 09:55:09 +09:00
Author: https://github.com/awesomekling
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