Tauri V2 Sidecar wrong working directory #12749
Unanswered
moritz-baecker-integra
asked this question in
Q&A
Replies: 1 comment 9 replies
-
there are SpawnOptions which contains const command = Command.sidecar('binaries/TEST', [], { cwd: "path/to/whatever" }); i'm not sure if it accepts relative paths or only absolute ones. In case of the latter it'd be tricky to get the target dir if you don't want to use rust and don't want to hardcode it your system's target path. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I start a sidecar at application startup in JS.
It works fine if i use the build version or start the app.exe manually, but if i start the dev mode with "tauri dev", the working directory of the sidecar is wrong:
"Process Start Directory: C:\Data\Work\ABC\Frontend\src-tauri"
It should be:
"C:\Data\Work\ABC\Frontend\src-tauri\target\debug"
Is therer a way to correct this behavior? I could not find anything in the documentation.
Beta Was this translation helpful? Give feedback.
All reactions