This commit is contained in:
@@ -54,13 +54,15 @@ impl LocalCopier {
|
|||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
let paste_process = {
|
let paste_process = {
|
||||||
tokio::process::Command::new("pbpaste")
|
tokio::process::Command::new("pbpaste")
|
||||||
.stdin(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
|
.stderr(Stdio::piped())
|
||||||
.spawn()?
|
.spawn()?
|
||||||
};
|
};
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
let mut paste_process = {
|
let mut paste_process = {
|
||||||
tokio::process::Command::new("wl-paste")
|
tokio::process::Command::new("wl-paste")
|
||||||
.stdin(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
|
.stderr(Stdio::piped())
|
||||||
.spawn()?
|
.spawn()?
|
||||||
};
|
};
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
|
@@ -68,7 +68,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
tracing_subscriber::fmt()
|
tracing_subscriber::fmt()
|
||||||
.with_env_filter(
|
.with_env_filter(
|
||||||
EnvFilter::builder()
|
EnvFilter::builder()
|
||||||
.with_default_directive("error".parse().unwrap())
|
//.with_default_directive("error".parse().unwrap())
|
||||||
.from_env_lossy(),
|
.from_env_lossy(),
|
||||||
)
|
)
|
||||||
.with_writer(std::io::stderr)
|
.with_writer(std::io::stderr)
|
||||||
|
Reference in New Issue
Block a user