1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:57:35 +00:00

LibDesktop: Pass an optional arguments list to AppFile::spawn()

This commit is contained in:
Tim Ledbetter 2023-01-20 21:50:53 +00:00 committed by Sam Atkins
parent baaf97787b
commit 3b446fba34
2 changed files with 3 additions and 3 deletions

View file

@ -150,12 +150,12 @@ Vector<DeprecatedString> AppFile::launcher_protocols() const
return protocols;
}
bool AppFile::spawn() const
bool AppFile::spawn(ReadonlySpan<StringView> arguments) const
{
if (!is_valid())
return false;
auto pid = Core::Process::spawn(executable(), ReadonlySpan<StringView> {}, working_directory());
auto pid = Core::Process::spawn(executable(), arguments, working_directory());
if (pid.is_error())
return false;