SystemMonitor: Ignore unveil error about unexisting HackStudio binary
The minimal build configuration doesn't include HackStudio and SystemMonitor refused to run after trying to unveil a not exiting file. This change will just ignore this specific error for this specific file as if nothing really happened. The ability to quickly debug a process in HackStudio is not the main feature of the application and HackStudio itself is rather heavy to be put in the minimal configuration. Additionally, I find it unnecessary to disable/hide the 'Debug in HackStudio' action because build configurations are mostly for testing purposes anyway. You will get a 'No such file or directory' error in the console after activating the action though. :^)
This commit is contained in:
parent
a041f1671c
commit
f12dc8b7f5
Notes:
sideshowbarker
2024-07-17 04:21:32 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/f12dc8b7f5 Pull-request: https://github.com/SerenityOS/serenity/pull/18966 Reviewed-by: https://github.com/gmta ✅
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return result.release_error();
|
||||
|
||||
TRY(Core::System::unveil("/bin/Profiler", "rx"));
|
||||
TRY(Core::System::unveil("/bin/HackStudio", "rx"));
|
||||
// HackStudio doesn't exist in the minimal build configuration.
|
||||
if (auto result = Core::System::unveil("/bin/HackStudio", "rx"); result.is_error() && result.error().code() != ENOENT)
|
||||
return result.release_error();
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
StringView args_tab = "processes"sv;
|
||||
|
|
Loading…
Add table
Reference in a new issue