v0.1.4-pre.005

This commit is contained in:
2026-08-16 11:11:09 +02:00
parent db80e58ff1
commit f719821392
25 changed files with 1362 additions and 51 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-config-desk/src/main.rs
// version: 1
// version: 2
//! Binary entry point for the KSP configuration desktop application.
@@ -13,7 +13,7 @@ use fs2::FileExt; // rust-rules: trait-import
fn main() -> std::process::ExitCode {
let mut lock_path = std::env::temp_dir();
lock_path.push("com_sasedev_ksp_app_config_desk.lock");
let lock_file = match std::fs::OpenOptions::new().read(true).write(true).create(true).open(&lock_path) {
let lock_file = match std::fs::OpenOptions::new().read(true).write(true).create(true).truncate(false).open(&lock_path) {
std::result::Result::Ok(file) => file,
std::result::Result::Err(error) => {
eprintln!("cannot create application lock '{}': {error}", lock_path.display());