From 2f096c12ab27dd302ae475f3f76c074dc1126bfe Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Mon, 5 Jan 2026 15:21:54 +0700 Subject: [PATCH] smol fixes Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com> --- src-tauri/src/lib.rs | 10 +++++++++- src-tauri/tauri.conf.json | 2 +- src/pages/Schedules.tsx | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 35a82cc..b3dc32f 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -674,16 +674,24 @@ pub fn run() { .setup(|app| { #[cfg(target_os = "linux")] { - use tauri_plugin_deep_link::DeepLinkExt; // Flatpak/Flathub sandbox typically cannot write to system desktop/mime locations. // Deep-link registration is best-effort; never fail app startup. if is_flathub() { log::info!("skipping deep-link registration in Flatpak/Flathub"); } else { + use tauri_plugin_deep_link::DeepLinkExt; if let Err(err) = app.deep_link().register_all() { log::warn!("deep-link registration failed (continuing): {}", err); } } + + let cache_dir = app.path().cache_dir()?; + let package_info = app.package_info(); + let app_name = package_info.name.as_str(); + let app_cache = cache_dir.join(app_name); + if app_cache.exists() { + let _ = fs::remove_dir_all(&app_cache); + } } #[cfg(windows)] diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index c4a0df8..bf8674f 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -51,7 +51,7 @@ "homepage": "https://github.com/rclone-ui/rclone-ui", "publisher": "Rclone UI", "category": "Utility", - "copyright": "Copyright © 2025 Rclone UI.", + "copyright": "Copyright © 2026 Rclone UI.", "macOS": { "dmg": { "appPosition": { diff --git a/src/pages/Schedules.tsx b/src/pages/Schedules.tsx index 5aee862..ae2c874 100644 --- a/src/pages/Schedules.tsx +++ b/src/pages/Schedules.tsx @@ -188,6 +188,7 @@ function TaskCard({ task }: { task: ScheduledTask }) { placement="bottom" size="lg" color="foreground" + isDisabled={task.isRunning} >