Skip to content
Merged

Main #309

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/desktop/src-tauri/src/discord_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ use serde_json::{json, Value};

use log::{error, info, warn};
use tauri::{AppHandle, Emitter};
#[cfg(unix)]
use std::env;
#[cfg(unix)]
use std::path::PathBuf;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
#[cfg(unix)]
use tokio::net::UnixStream;
Expand Down
4 changes: 4 additions & 0 deletions apps/desktop/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ use tracing_subscriber::prelude::*;
/// supervisor lazily the first time you spawn.
#[inline]
fn silent_command(program: &str) -> Command {
#[cfg(target_os = "windows")]
let mut cmd = Command::new(program);
#[cfg(not(target_os = "windows"))]
let cmd = Command::new(program);

#[cfg(target_os = "windows")]
{
// `creation_flags` and `raw_arg` are inherent methods on
Expand Down
Loading