diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-08-24 20:05:20 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-24 18:21:33 +0200 |
commit | 3a07f6e345af4fc42fab3b07d0c88c45a6abed73 (patch) | |
tree | 2f7eb81a00148820bd5b7a68426f6c60e5f35230 /Applications/Spreadsheet/main.cpp | |
parent | 12cf3e13c0fd7a1b68251d605d5a29d1e77e2526 (diff) | |
download | serenity-3a07f6e345af4fc42fab3b07d0c88c45a6abed73.zip |
Spreadsheet: Document runtime functions and add a help window
...that can automatically generate documentation pages from the objects.
Diffstat (limited to 'Applications/Spreadsheet/main.cpp')
-rw-r--r-- | Applications/Spreadsheet/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Applications/Spreadsheet/main.cpp b/Applications/Spreadsheet/main.cpp index c94fdfd281..cd4fd4ff17 100644 --- a/Applications/Spreadsheet/main.cpp +++ b/Applications/Spreadsheet/main.cpp @@ -43,6 +43,16 @@ int main(int argc, char* argv[]) return 1; } + if (unveil("/tmp/portal/webcontent", "rw") < 0) { + perror("unveil"); + return 1; + } + + if (unveil("/etc", "r") < 0) { + perror("unveil"); + return 1; + } + if (unveil("/res", "r") < 0) { perror("unveil"); return 1; |