From e9bafd768d66be41b4e50d64478e683c04a9fc09 Mon Sep 17 00:00:00 2001 From: Timothy Date: Wed, 9 Jun 2021 00:59:40 -0700 Subject: [PATCH] Browser: Fix crash on download This will unveil the portal for RequestServer which is used to download files in the Browser. --- Userland/Applications/Browser/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Applications/Browser/main.cpp b/Userland/Applications/Browser/main.cpp index 95095d08a0..45f10779ab 100644 --- a/Userland/Applications/Browser/main.cpp +++ b/Userland/Applications/Browser/main.cpp @@ -94,6 +94,11 @@ int main(int argc, char** argv) return 1; } + if (unveil("/tmp/portal/request", "rw") < 0) { + perror("unveil"); + return 1; + } + unveil(nullptr, nullptr); auto app_icon = GUI::Icon::default_icon("app-browser");