Maps: Move TileProviders.json to user independent folder

This commit is contained in:
Bastiaan van der Plaat 2024-02-28 20:56:24 +01:00 committed by Sam Atkins
parent 5da9f52b1f
commit 29026ce965
Notes: sideshowbarker 2024-07-17 09:37:30 +09:00
3 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ ErrorOr<void> MapsSettingsWidget::initialize()
tile_provider_fields.empend("url_format", "URL format"_string, Gfx::TextAlignment::CenterLeft);
tile_provider_fields.empend("attribution_text", "Attribution text"_string, Gfx::TextAlignment::CenterLeft);
tile_provider_fields.empend("attribution_url", "Attribution URL"_string, Gfx::TextAlignment::CenterLeft);
auto tile_providers = GUI::JsonArrayModel::create(ByteString::formatted("{}/MapsTileProviders.json", Core::StandardPaths::config_directory()), move(tile_provider_fields));
auto tile_providers = GUI::JsonArrayModel::create("/usr/share/Maps/TileProviders.json", move(tile_provider_fields));
tile_providers->invalidate();
Vector<JsonValue> custom_tile_provider;

View File

@ -18,8 +18,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::create(arguments));
TRY(Core::System::unveil("/home", "r"));
TRY(Core::System::unveil("/res", "r"));
TRY(Core::System::unveil("/usr/share/Maps", "r"));
TRY(Core::System::unveil("/tmp/session/%sid/portal/config", "rw"));
TRY(Core::System::unveil(nullptr, nullptr));