Fixup Live env part 1.

This commit is contained in:
Hadi Chokr
2026-02-12 08:59:29 +01:00
parent 325bbe742e
commit f95f7713fb
2 changed files with 4 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
#!/bin/sh
#!/usr/bin/env bash
# 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>
# SPDX-FileCopyrightText: 2026 Hadi Chokr <hadichokr@icloud.com>
if [ "$(id -u)" != "0" ]; then
exec pkexec /usr/local/bin/calamares "$@"
exec pkexec /opt/local/bin/calamares "$@"
fi
export KDE_FULL_SESSION=TRUE

View File

@@ -19,7 +19,7 @@
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/calamares</annotate>
<annotate key="org.freedesktop.policykit.exec.path">/opt/local/bin/calamares</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>