diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 04f54a80..d37b6039 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3660,6 +3660,7 @@ fn handle_cli_args(app: &AppHandle, args: &[String], cwd: &str) -> bool { eprintln!("Failed to initialize notes folder {:?}: {}", canonical, e); } } + #[cfg(not(target_os = "linux"))] if let Some(main_window) = app.get_webview_window("main") { let _ = main_window.show(); let _ = main_window.set_focus(); @@ -3669,6 +3670,7 @@ fn handle_cli_args(app: &AppHandle, args: &[String], cwd: &str) -> bool { // If no files were opened, show and focus the main window if !opened_file { + #[cfg(not(target_os = "linux"))] if let Some(main_window) = app.get_webview_window("main") { let _ = main_window.show(); let _ = main_window.set_focus(); @@ -3786,6 +3788,7 @@ pub fn run() { // - No standalone preview was opened (normal launch), OR // - No notes folder is configured yet (new user needs FolderPicker // for onboarding, even if a preview is also showing). + #[cfg(not(target_os = "linux"))] let _ = main_window.show(); } } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b4e2ab1b..95c44cb0 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -19,9 +19,6 @@ "minHeight": 400, "resizable": true, "decorations": true, - "titleBarStyle": "Overlay", - "hiddenTitle": true, - "trafficLightPosition": { "x": 16, "y": 24 }, "visible": false } ], diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json new file mode 100644 index 00000000..f6509440 --- /dev/null +++ b/src-tauri/tauri.linux.conf.json @@ -0,0 +1,16 @@ +{ + "app": { + "windows": [ + { + "title": "Scratch", + "width": 1080, + "height": 720, + "minWidth": 600, + "minHeight": 400, + "resizable": true, + "decorations": true, + "visible": true + } + ] + } +} diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json new file mode 100644 index 00000000..c2dcd27a --- /dev/null +++ b/src-tauri/tauri.macos.conf.json @@ -0,0 +1,11 @@ +{ + "app": { + "windows": [ + { + "titleBarStyle": "Overlay", + "hiddenTitle": true, + "trafficLightPosition": { "x": 16, "y": 24 } + } + ] + } +}