diff options
Diffstat (limited to 'trinity-base/tdesu/tdesu-9999.ebuild')
| -rw-r--r-- | trinity-base/tdesu/tdesu-9999.ebuild | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/trinity-base/tdesu/tdesu-9999.ebuild b/trinity-base/tdesu/tdesu-9999.ebuild index 4eba7358..73523318 100644 --- a/trinity-base/tdesu/tdesu-9999.ebuild +++ b/trinity-base/tdesu/tdesu-9999.ebuild @@ -1,5 +1,5 @@ # Copyright 1999-2020 Gentoo Authors -# Copyright 2020-2025 The Trinity Desktop Project +# Copyright 2020-2026 The Trinity Desktop Project # Distributed under the terms of the GNU General Public License v2 EAPI="8" @@ -12,7 +12,7 @@ DESCRIPTION="Trinity gui for su(1) or sudo" if [[ ${PV} != *9999* ]] ; then KEYWORDS="~amd64 ~arm64 ~x86" fi -IUSE="sudo" +IUSE="sudo kdesu-symlink" DEPEND="sudo? ( app-admin/sudo )" RDEPEND="${DEPEND}" @@ -26,6 +26,11 @@ src_configure () { trinity-meta-2_src_configure } +src_install () { + trinity-meta-2_src_install + use kdesu-symlink && dosym tdesu "${TDEDIR}/bin/kdesu" +} + pkg_postinst () { if use sudo; then einfo "Remember that the sudo use flag sets only the default superuser command." @@ -35,4 +40,12 @@ pkg_postinst () { einfo "to the kdeglobals config file, which is usually" einfo "located in the ~/.trinity/share/config/ directory." fi + + if use kdesu-symlink; then + einfo + einfo "Note that with USE=\"kdesu-symlink\" you may still have" + einfo "kde-frameworks/kdesu installed alongside tdesu. In such a case" + einfo "tdesu will be prioritized to be used instead of it inside a TDE" + einfo "session and KDE's kdesu will be used when running other DEs." + fi } |
