From 43087be21a090ba9756f38fe2519be48a28b36a6 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Mon, 27 Feb 2023 16:39:42 +0100 Subject: [PATCH] Disable qml cache in flatpak --- .flatpak-manifest.json | 8 ++++++++ .patches/run_kasts.sh | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 .patches/run_kasts.sh diff --git a/.flatpak-manifest.json b/.flatpak-manifest.json index cfe4efb0..03b56017 100644 --- a/.flatpak-manifest.json +++ b/.flatpak-manifest.json @@ -146,10 +146,18 @@ { "name": "kasts", "buildsystem": "cmake-ninja", + "post-install": [ + "mv /app/bin/{kasts,kasts-bin}", + "install .patches/run_kasts.sh /app/bin/kasts" + ], "sources": [ { "type": "dir", "path": "." + }, + { + "type": "file", + "path": ".patches/run_kasts.sh" } ] } diff --git a/.patches/run_kasts.sh b/.patches/run_kasts.sh new file mode 100644 index 00000000..21e6fb7f --- /dev/null +++ b/.patches/run_kasts.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# SPDX-FileCopyrightText: 2023 Bart De Vries +# SPDX-License-Identifier: BSD-2-Clause + +export QML_DISABLE_DISK_CACHE=1 +exec kasts-bin "$@"