mirror of
https://github.com/KDE/kde-linux.git
synced 2026-05-19 14:04:06 -04:00
Explicitly set PATH in environment.d
plasmalogin doesn't do this anymore, as of fa3916a4aa, 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.
This commit is contained in:
@@ -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 <sitter@kde.org>
|
||||
|
||||
# Most notably kde-builder wants .local/bin in the PATH and will fail if it is not
|
||||
PATH=$HOME/.local/bin:$PATH
|
||||
|
||||
8
mkosi.extra/usr/lib/environment.d/40-kde-linux-path.conf
Normal file
8
mkosi.extra/usr/lib/environment.d/40-kde-linux-path.conf
Normal file
@@ -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 <sitter@kde.org>
|
||||
# SPDX-FileCopyrightText: 2026 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
# 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
|
||||
Reference in New Issue
Block a user