mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-12 04:56:27 +00:00
Fixed Windows terminal flash during Pandoc document processing (#799)
Some checks failed
Build and Release / Determine run mode (push) Has been cancelled
Build and Release / Read metadata (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Has been cancelled
Build and Release / Prepare & create release (push) Has been cancelled
Build and Release / Publish release (push) Has been cancelled
Some checks failed
Build and Release / Determine run mode (push) Has been cancelled
Build and Release / Read metadata (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Has been cancelled
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Has been cancelled
Build and Release / Prepare & create release (push) Has been cancelled
Build and Release / Publish release (push) Has been cancelled
This commit is contained in:
parent
b9813fcbe7
commit
e9da7d31df
@ -10,4 +10,5 @@
|
|||||||
- Improved workspaces by allowing new workspaces to be created while moving a chat.
|
- Improved workspaces by allowing new workspaces to be created while moving a chat.
|
||||||
- Improved the enterprise configuration details on the information page by showing where each configuration comes from and which configuration slot was used.
|
- Improved the enterprise configuration details on the information page by showing where each configuration comes from and which configuration slot was used.
|
||||||
- Fixed workspace creation and renaming to prevent new workspaces from using an existing name.
|
- Fixed workspace creation and renaming to prevent new workspaces from using an existing name.
|
||||||
|
- Fixed an issue on Microsoft Windows where reading attached documents could briefly open a terminal window while processing files.
|
||||||
- Upgraded dependencies.
|
- Upgraded dependencies.
|
||||||
@ -12,6 +12,12 @@ use crate::metadata::META_DATA;
|
|||||||
static HAS_LOGGED_RID_MISMATCH: OnceLock<()> = OnceLock::new();
|
static HAS_LOGGED_RID_MISMATCH: OnceLock<()> = OnceLock::new();
|
||||||
static HAS_LOGGED_PANDOC_PATH: OnceLock<()> = OnceLock::new();
|
static HAS_LOGGED_PANDOC_PATH: OnceLock<()> = OnceLock::new();
|
||||||
|
|
||||||
|
/// Microsoft documents CREATE_NO_WINDOW as a process creation flag with value 0x08000000.
|
||||||
|
/// It starts console applications without opening a console window:
|
||||||
|
/// https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags
|
||||||
|
#[cfg(windows)]
|
||||||
|
const CREATE_NO_WINDOW: u32 = 0x08000000;
|
||||||
|
|
||||||
pub struct PandocExecutable {
|
pub struct PandocExecutable {
|
||||||
pub executable: String,
|
pub executable: String,
|
||||||
pub is_local_installation: bool,
|
pub is_local_installation: bool,
|
||||||
@ -99,6 +105,9 @@ impl PandocProcessBuilder {
|
|||||||
|
|
||||||
let pandoc_executable = Self::pandoc_executable_path();
|
let pandoc_executable = Self::pandoc_executable_path();
|
||||||
let mut command = Command::new(&pandoc_executable.executable);
|
let mut command = Command::new(&pandoc_executable.executable);
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
command.creation_flags(CREATE_NO_WINDOW);
|
||||||
command.args(&arguments);
|
command.args(&arguments);
|
||||||
|
|
||||||
PandocPreparedProcess {
|
PandocPreparedProcess {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user