Files
kde-linux/mkosi.prepare.chroot
Thomas Duckworth 6f1ccfcbaf Move mimeapps.list mv operation to mkosi.prepare.chroot
I messed up the execution order which ended up removing the shipped kde-mimeapps.list.
2026-03-30 11:27:26 +11:00

23 lines
840 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org>
# If mkosi.prepare (PrepareScripts=) exists, it is first called with the final
# argument, right after the software packages are installed. It is called a
# second time with the build command line parameter, right after the build
# packages are installed and the build overlay mounted on top of the image's
# root directory .
set -ex
echo "$@"
if [ "$1" = "final" ]; then
env
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# Rename the packaged kde-mimeapps.list to mimeapps.list
# This allows our kde-mimeapps.list to take precedence.
mv -v /usr/share/applications/kde-mimeapps.list /usr/share/applications/mimeapps.list
fi