aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-02-16 17:39:20 -0600
committerJP Dillingham <jp@dillingham.me>2025-02-16 17:39:20 -0600
commit780c100d37a36f290abfd1357d10c50253a7644b (patch)
tree616b26bcb070417102a4a9c5565f560657133dd8 /src/slskd/Integrations
parent6620aaf1bd072b8e86adc0a1541109cb51506e28 (diff)
downloadslskd-780c100d37a36f290abfd1357d10c50253a7644b.tar.gz
set working directory
Diffstat (limited to 'src/slskd/Integrations')
-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,