mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 04:35:41 +03:00
Maps: Move TileProviders.json to user independent folder
This commit is contained in:
parent
5da9f52b1f
commit
29026ce965
Notes:
sideshowbarker
2024-07-17 09:37:30 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/29026ce965 Pull-request: https://github.com/SerenityOS/serenity/pull/23396 Reviewed-by: https://github.com/AtkinsSJ ✅
@ -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;
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user