tauri-apps / tauri-apps/plugins-workspace

Expose the ability to get the path of a sidecar binary at runtime

Open
#2,151 14 comments 4 reactions 0 assignees View on GitHub
plugin: shell type: feature request
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

### Describe the problem

In my case, I have 2 binaries that I need to include as sidecars (with the platform triple). One of these binaries depends on the other and needs the path to the binary passed in through the environment, but today there is no way to get the path to a sidecar binary at runtime.

### Describe the solution you'd like

I would like to be able to do something like so:

```javascript
let sidecarOne = Command.sidecar("program-one", ...);
let sidecarOnePath = sidecarOne.getPath();

let sidecarTwo = Command.sidecar("program-two", [...args], { env: { PROGRAM_ONE_PATH: sidecarOnePath } });
```

### Alternatives considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.