diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 96d0b39e239..d69ac2e3aac 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -27,6 +27,8 @@ #include #include #include +#include +#include #include #include #include @@ -347,6 +349,7 @@ int main(int argc, char** argv) } RefPtr config = Core::ConfigFile::get_for_app("Terminal"); + Core::File::ensure_parent_directories(config->file_name()); pid_t shell_pid = 0; @@ -502,7 +505,7 @@ int main(int argc, char** argv) return 1; } - if (unveil(config->file_name().characters(), "rwc")) { + if (unveil(config->file_name().characters(), "rwc") < 0) { perror("unveil"); return 1; }