Browse Source

also hide the main server window

pull/1089/head
Jason Dove 3 years ago
parent
commit
ccbe85a46a
  1. 6
      ErsatzTV-Windows/src/main.rs

6
ErsatzTV-Windows/src/main.rs

@ -2,11 +2,14 @@ @@ -2,11 +2,14 @@
use special_folder::SpecialFolder;
use std::fs;
use std::os::windows::process::CommandExt;
use std::process::Child;
use std::process::Command;
use std::process::Stdio;
use {std::sync::mpsc, tray_item::TrayItem};
use windows::Win32::System::Console;
use {std::sync::mpsc, tray_item::TrayItem};
const CREATE_NO_WINDOW: u32 = 0x08000000;
enum Message {
Exit,
@ -71,6 +74,7 @@ fn main() { @@ -71,6 +74,7 @@ fn main() {
Some(etv) => {
child = Some(
Command::new(etv)
.creation_flags(CREATE_NO_WINDOW)
.stdin(Stdio::null())
.stdout(Stdio::null())
.stderr(Stdio::null())

Loading…
Cancel
Save