From 3ed5c173fd78e97b24fab0a059e5fe23b2f63b8f Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Wed, 18 Feb 2026 20:10:42 +0000 Subject: [PATCH] fix(cosmic-theme): copy for backup, not rename We're now merging the colors with kdeglobals, not replacing it with a symlink. So renaming the file gives us a missing file Io error: [2026-02-18T20:03:08Z ERROR cosmic_settings_daemon::theme] Failed to apply COSMIC theme exports. Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) --- cosmic-theme/src/output/qt_output.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmic-theme/src/output/qt_output.rs b/cosmic-theme/src/output/qt_output.rs index 2e926a2..67ffbd6 100644 --- a/cosmic-theme/src/output/qt_output.rs +++ b/cosmic-theme/src/output/qt_output.rs @@ -338,7 +338,7 @@ widgetStyle=qt6ct-style fn backup_non_cosmic_kdeglobals(ini: &Ini, path: &Path) -> io::Result<()> { if !Self::is_cosmic_kdeglobals(&ini)?.unwrap_or(true) { let backup_path = path.with_extension("bak"); - fs::rename(path, &backup_path)?; + fs::copy(path, &backup_path)?; } Ok(()) }