mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
TextEditor: Unveil the full path to the config file
Unveil ~/.config/TextEditor.ini instead of the whole config directory.
This commit is contained in:
parent
aacb1f0bf4
commit
7d579b04c5
3 changed files with 15 additions and 3 deletions
|
@ -32,6 +32,7 @@ int main(int argc, char** argv)
|
|||
parser.parse(argc, argv);
|
||||
|
||||
String file_to_edit_full_path;
|
||||
auto config_filename = MainWidget::open_config_file()->filename();
|
||||
|
||||
if (file_to_edit) {
|
||||
FileArgument parsed_argument(file_to_edit);
|
||||
|
@ -47,7 +48,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (unveil(Core::StandardPaths::config_directory().characters(), "rw") < 0) {
|
||||
if (unveil(config_filename.characters(), "rwc") < 0) {
|
||||
perror("unveil");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue