diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-02-16 17:39:20 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-02-16 17:39:20 -0600 |
| commit | 780c100d37a36f290abfd1357d10c50253a7644b (patch) | |
| tree | 616b26bcb070417102a4a9c5565f560657133dd8 /src/slskd/Integrations | |
| parent | 6620aaf1bd072b8e86adc0a1541109cb51506e28 (diff) | |
| download | slskd-780c100d37a36f290abfd1357d10c50253a7644b.tar.gz | |
set working directory
Diffstat (limited to 'src/slskd/Integrations')
| -rw-r--r-- | src/slskd/Integrations/Scripts/ScriptService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Integrations/Scripts/ScriptService.cs b/src/slskd/Integrations/Scripts/ScriptService.cs index 0c3bf5b6..99771d89 100644 --- a/src/slskd/Integrations/Scripts/ScriptService.cs +++ b/src/slskd/Integrations/Scripts/ScriptService.cs @@ -98,8 +98,9 @@ public class ScriptService process = new Process() { - StartInfo = new ProcessStartInfo(fileName: executable) + StartInfo = new ProcessStartInfo(executable ?? DefaultExecutable) { + WorkingDirectory = Program.ScriptDirectory, UseShellExecute = false, CreateNoWindow = true, RedirectStandardOutput = true, |
