1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

Spreadsheet: Add an export wizard, and support for custom CSV exports

Fixes #4269.
This commit is contained in:
AnotherTest 2021-03-20 14:00:49 +03:30 committed by Andreas Kling
parent bba3a7a2cb
commit 9b68f91c0b
6 changed files with 614 additions and 28 deletions

View file

@ -48,7 +48,7 @@ int main(int argc, char* argv[])
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath unix", nullptr) < 0) {
if (pledge("stdio recvfd sendfd thread rpath accept cpath wpath fattr unix", nullptr) < 0) {
perror("pledge");
return 1;
}
@ -72,6 +72,12 @@ int main(int argc, char* argv[])
return 1;
}
// For writing temporary files when exporting.
if (unveil("/tmp", "crw") < 0) {
perror("unveil");
return 1;
}
if (unveil("/etc", "r") < 0) {
perror("unveil");
return 1;