v0.1.4-pre.005
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user