diff --git a/Base/res/apps/NetworkSettings.af b/Base/res/apps/NetworkSettings.af index 848f5a725b..883dc828a4 100644 --- a/Base/res/apps/NetworkSettings.af +++ b/Base/res/apps/NetworkSettings.af @@ -1,7 +1,6 @@ [App] Name=Network Settings Executable=/bin/NetworkSettings -RequiresRoot=true Category=Settings Description=Configure network connections ExcludeFromSystemMenu=true diff --git a/Userland/Applications/NetworkSettings/main.cpp b/Userland/Applications/NetworkSettings/main.cpp index 11b9cbb277..b29c96031c 100644 --- a/Userland/Applications/NetworkSettings/main.cpp +++ b/Userland/Applications/NetworkSettings/main.cpp @@ -6,9 +6,6 @@ #include "NetworkSettingsWidget.h" #include -#include -#include - #include #include #include @@ -35,11 +32,6 @@ ErrorOr serenity_main(Main::Arguments args) auto app = TRY(GUI::Application::create(args)); - if (getuid() != 0) { - GUI::MessageBox::show_error(nullptr, "You need to be root to run Network Settings!"sv); - return 1; - } - TRY(Core::System::pledge("stdio rpath wpath cpath recvfd sendfd proc exec")); auto app_icon = GUI::Icon::default_icon("network"sv); diff --git a/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp b/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp index c09ec480d9..218c261c35 100644 --- a/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp +++ b/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp @@ -76,7 +76,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget() "Open in Network Settings...", MUST(Gfx::Bitmap::load_from_file("/res/icons/16x16/network.png"sv)), [this](GUI::Action&) { m_adapter_table_view->selection().for_each_index([this](GUI::ModelIndex const& index) { auto adapter_name = index.sibling_at_column(1).data().as_string(); - GUI::Process::spawn_or_show_error(window(), "/bin/Escalator"sv, Array { "/bin/NetworkSettings", adapter_name.characters() }); + GUI::Process::spawn_or_show_error(window(), "/bin/NetworkSettings"sv, Array { adapter_name.characters() }); }); }, this)); diff --git a/Userland/Applications/SystemMonitor/main.cpp b/Userland/Applications/SystemMonitor/main.cpp index 505ac767f9..b3fa16a137 100644 --- a/Userland/Applications/SystemMonitor/main.cpp +++ b/Userland/Applications/SystemMonitor/main.cpp @@ -248,6 +248,7 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::unveil("/dev", "r")); TRY(Core::System::unveil("/bin", "r")); TRY(Core::System::unveil("/bin/Escalator", "x")); + TRY(Core::System::unveil("/bin/NetworkSettings", "x")); TRY(Core::System::unveil("/usr/lib", "r")); // This directory only exists if ports are installed