From 146bb92c08ce49c353032d7f172a657d8e24c72a Mon Sep 17 00:00:00 2001 From: Thomas Duckworth Date: Sat, 24 Jan 2026 16:45:34 +1100 Subject: [PATCH] Explicitly set PATH in environment.d plasmalogin doesn't do this anymore, as of https://invent.kde.org/plasma/plasma-login-manager/-/commit/fa3916a4aa679e69e6da8df3c825ebcb735f4acc, and it's noted that it should be done in environment.d instead. This fixes expected behaviour where binaries in /usr/local/bin should take precedence over /usr/bin. --- .../usr/lib/environment.d/40-kde-linux-local-bin.conf | 5 ----- mkosi.extra/usr/lib/environment.d/40-kde-linux-path.conf | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 mkosi.extra/usr/lib/environment.d/40-kde-linux-path.conf diff --git a/mkosi.extra/usr/lib/environment.d/40-kde-linux-local-bin.conf b/mkosi.extra/usr/lib/environment.d/40-kde-linux-local-bin.conf index 66a4540..e69de29 100644 --- a/mkosi.extra/usr/lib/environment.d/40-kde-linux-local-bin.conf +++ b/mkosi.extra/usr/lib/environment.d/40-kde-linux-local-bin.conf @@ -1,5 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL -# SPDX-FileCopyrightText: 2025 Harald Sitter - -# Most notably kde-builder wants .local/bin in the PATH and will fail if it is not -PATH=$HOME/.local/bin:$PATH diff --git a/mkosi.extra/usr/lib/environment.d/40-kde-linux-path.conf b/mkosi.extra/usr/lib/environment.d/40-kde-linux-path.conf new file mode 100644 index 0000000..3c11c9c --- /dev/null +++ b/mkosi.extra/usr/lib/environment.d/40-kde-linux-path.conf @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL +# SPDX-FileCopyrightText: 2025 Harald Sitter +# SPDX-FileCopyrightText: 2026 Thomas Duckworth + +# Explicitly set PATH so we always have /usr/local binary paths in front, which we need +# to mask binaries in /usr/bin. +# Also, kde-builder wants .local/bin in the PATH and will fail if it is not. +PATH=$HOME/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin