aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations/Scripts/ScriptService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Integrations/Scripts/ScriptService.cs')
-rw-r--r--src/slskd/Integrations/Scripts/ScriptService.cs3
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,