nixpkgs/pkgs/kde/frameworks/kservice/handle-sycoca-deletion.patch
K900 3f2aac327f kdePackages.kservice: handle sycoca disappearing better
This is not a complete fix, the whole thing is still full of races,
but at least this gets it to explode a lot less often.
2024-04-09 08:29:36 +03:00

15 lines
520 B
Diff

diff --git a/src/sycoca/ksycoca.cpp b/src/sycoca/ksycoca.cpp
index 981342e6..5940f65f 100644
--- a/src/sycoca/ksycoca.cpp
+++ b/src/sycoca/ksycoca.cpp
@@ -218,6 +218,10 @@ KSycoca::KSycoca()
connect(d->m_fileWatcher.get(), &KDirWatch::dirty, this, [this]() {
d->slotDatabaseChanged();
});
+ // NIXPKGS: we sometimes delete sycoca externally
+ connect(d->m_fileWatcher.get(), &KDirWatch::deleted, this, [this]() {
+ d->slotDatabaseChanged();
+ });
}
}