From 788119f78101a10b2c58de0690c23572ac348076 Mon Sep 17 00:00:00 2001 From: Marvin Dostal Date: Thu, 28 Oct 2021 19:53:57 +0200 Subject: [PATCH] nextcloud-client: disable qml caching There currently seems to be a chance that after a nextcloud-client update it will crash on startup. This crashing can be fixed by deleting the `~/.cache/Nextcloud/qmlcache` folder. For the crashing behavior, see also: * #127324 * #121594 * #119029 * ... The workaround introduced in this commit is also already used by muse. See: https://github.com/NixOS/nixpkgs/blob/842a0d94cbb0a385854e15d4f6fde57714981abd/pkgs/applications/audio/musescore/default.nix#L34 --- pkgs/applications/networking/nextcloud-client/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/networking/nextcloud-client/default.nix b/pkgs/applications/networking/nextcloud-client/default.nix index e611f9ee015e..b7ff968f79bd 100644 --- a/pkgs/applications/networking/nextcloud-client/default.nix +++ b/pkgs/applications/networking/nextcloud-client/default.nix @@ -60,6 +60,8 @@ mkDerivation rec { qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret ]}" + # See also: https://bugreports.qt.io/browse/QTBUG-85967 + "--set QML_DISABLE_DISK_CACHE 1" ]; cmakeFlags = [