feat(app): the Windows program opens no console window; the window is named Wanderbooks (P15 C1)
The installed program is one executable that is the window, the books server's child and the assistants' bridge. Built for the Windows GUI subsystem, a Start Menu launch shows no console; console.rs gives a command run in a terminal its words back and never replaces a pipe an assistant handed the bridge. The two console programs the window starts (the agent's own list, the system's opener) get CREATE_NO_WINDOW. The window title is the product name; the storage id and the Linux app id stay lowercase so nothing already kept moves. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
a44744253d
commit
3b02e70794
9 files changed
+134
-15
No files matched your search
@@ -1967,11 +1967,20 @@ pub fn connect_agent(common: &Common, agent: &str, book: &str) -> Result<Vec<Str
|
||||
// Each call within a minute: an agent's command that hangs is said,
|
||||
// never waited on for good.
|
||||
let run_cli = |args: Vec<std::ffi::OsString>| -> Result<std::process::Output, String> {
|
||||
let mut child = std::process::Command::new(&program)
|
||||
let mut command = std::process::Command::new(&program);
|
||||
command
|
||||
.args(args)
|
||||
.stdin(std::process::Stdio::null())
|
||||
.stdout(std::process::Stdio::null())
|
||||
.stderr(std::process::Stdio::piped())
|
||||
.stderr(std::process::Stdio::piped());
|
||||
// The window has no console (WB-pkg-2): this one is not to open
|
||||
// a console of its own for a moment (CREATE_NO_WINDOW).
|
||||
#[cfg(windows)]
|
||||
{
|
||||
use std::os::windows::process::CommandExt;
|
||||
command.creation_flags(0x0800_0000);
|
||||
}
|
||||
let mut child = command
|
||||
.spawn()
|
||||
.map_err(|e| format!("{label} couldn't be run: {}", e.kind()))?;
|
||||
let deadline = std::time::Instant::now() + CONNECT_WAIT;
|
||||
|
||||
Reference in new issue
Block a user