1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Spreadsheet: Add list of recently-opened files

This commit is contained in:
Sam Atkins 2023-04-03 17:50:11 +01:00 committed by Andreas Kling
parent b85d24b1f4
commit 1e275dd942
3 changed files with 17 additions and 1 deletions

View file

@ -9,6 +9,7 @@
#include "SpreadsheetWidget.h"
#include <AK/ScopeGuard.h>
#include <AK/Try.h>
#include <LibConfig/Client.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/System.h>
#include <LibFileSystem/FileSystem.h>
@ -40,6 +41,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
}
}
Config::pledge_domain("Spreadsheet");
app->set_config_domain(TRY("Spreadsheet"_string));
TRY(Core::System::unveil("/tmp/session/%sid/portal/filesystemaccess", "rw"));
TRY(Core::System::unveil("/tmp/session/%sid/portal/webcontent", "rw"));
TRY(Core::System::unveil("/etc", "r"));