diff --git a/Userland/DevTools/Inspector/main.cpp b/Userland/DevTools/Inspector/main.cpp index 9cefbcac5b..4b45984124 100644 --- a/Userland/DevTools/Inspector/main.cpp +++ b/Userland/DevTools/Inspector/main.cpp @@ -66,7 +66,10 @@ ErrorOr serenity_main(Main::Arguments arguments) if (pid == getpid()) { GUI::MessageBox::show(window, "Cannot inspect Inspector itself!"sv, "Error"sv, GUI::MessageBox::Type::Error); - return 1; + if (gui_mode) + goto choose_pid; + else + return 1; } RemoteProcess remote_process(pid);