1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:17:45 +00:00

NetworkSettings: Use helper script to write config

This change allows us to not run the app with elevated privileges.

It uses the Escalator to call a helper and passes the settings as
JsonObject to it.
This commit is contained in:
Fabian Dellwing 2023-04-27 21:07:07 +02:00 committed by Andrew Kaster
parent 27297d2817
commit 24b1bdca27
3 changed files with 68 additions and 22 deletions

View file

@ -32,6 +32,8 @@ private:
void on_switch_adapter(DeprecatedString const& adapter);
void on_switch_enabled_or_dhcp();
ErrorOr<void> apply_settings_impl();
ErrorOr<Optional<JsonObject>> create_settings_object();
HashMap<DeprecatedString, NetworkAdapterData> m_network_adapters;
Vector<DeprecatedString> m_adapter_names;