tauri-apps / tauri-apps/plugins-workspace

feat: allow collecting raw output from sidecars

Open
#3,090 3 comments 0 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

In the `tauri_plugin_shell::process::Command`, we have the `output` method which automatically collects all output from the sidecar command. The issue with it is that it inserts `\n` after each received chunk. In case of handling raw output (i.e. binary output; for example, images, PDFs, etc.), this behavior breaks the received buffer.

It would be nice to have a boolean parameter or a separate method for collecting the output without inserting `\n` between chunks.

https://github.com/tauri-apps/plugins-workspace/blob/1a03e9761f2b62c9e33ef34f3f88606f85df4e44/plugins/shell/src/process/mod.rs#L366-L394

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.