From 9ded82d5ade35a8b8598bb9b671bdbc1acfd9364 Mon Sep 17 00:00:00 2001 From: JT Date: Wed, 7 Aug 2024 21:44:11 -0700 Subject: [PATCH] Merge pull request #758 from ionite34/fix-swarm-args Fix swarm args (cherry picked from commit 191df85fd58bcf5158c17c55aaaa2c38566156dd) --- CHANGELOG.md | 6 ++++++ StabilityMatrix.Core/Models/Packages/StableSwarm.cs | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49760832..5e3e56fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2 - Fixed incorrect IPAdapter download links in the HuggingFace model browser - Fixed potential memory leak of transient controls (Inference Prompt and Output Image Viewer) not being garbage collected due to event subscriptions - Fixed Batch Count seeds not being recorded properly in Inference projects and image metadata +- Fixed [#795](https://github.com/LykosAI/StabilityMatrix/issues/795) - SwarmUI launch args not working properly +### Supporters +#### Visionaries +- Shoutout to our Visionary-tier Patreon supporter, **Scopp Mcdee**! Huge thanks for your continued support! +#### Pioneers +- Many thanks to our Pioneer-tier supporters on Patreon: **tankfox**, **tanangular**, **Mr. Unknown**, and **Szir777**! Your continued support is greatly appreciated! ## v2.11.5 ### Added diff --git a/StabilityMatrix.Core/Models/Packages/StableSwarm.cs b/StabilityMatrix.Core/Models/Packages/StableSwarm.cs index 32ca92eb..b64f4ca4 100644 --- a/StabilityMatrix.Core/Models/Packages/StableSwarm.cs +++ b/StabilityMatrix.Core/Models/Packages/StableSwarm.cs @@ -280,7 +280,9 @@ void HandleConsoleOutput(ProcessOutput s) dotnetProcess = await prerequisiteHelper .RunDotnet( - args: [Path.Combine(releaseFolder, dllName), arguments.TrimEnd()], + args: new ProcessArgs(new[] { Path.Combine(releaseFolder, dllName) }).Concat( + arguments.TrimEnd() + ), workingDirectory: installedPackagePath, envVars: aspEnvVars, onProcessOutput: HandleConsoleOutput,