MCPcopy Create free account
hub / github.com/amnweb/thide / start_gui

Function start_gui

src/cli.rs:84–97  ·  view source on GitHub ↗

Start THide in GUI mode

()

Source from the content-addressed store, hash-verified

82
83/// Start THide in GUI mode
84fn start_gui() -> Result<(), Box<dyn std::error::Error>> {
85 use std::process::Command;
86
87 if is_thide_running() {
88 println!("THide is already running.");
89 return Ok(());
90 }
91
92 let exe_path = std::env::current_exe()?;
93 Command::new(exe_path).spawn()?;
94
95 println!("Starting THide...");
96 Ok(())
97}
98
99/// Enable THide to start automatically on Windows login
100fn enable_autostart() -> Result<(), Box<dyn std::error::Error>> {

Callers 1

handle_cli_commandFunction · 0.85

Calls 1

is_thide_runningFunction · 0.85

Tested by

no test coverage detected