commit: 8c842bf21dbd9bb41c1b19250431488257882f26 Author: Ferenc Erki <erkiferenc <AT> gmail <DOT> com> AuthorDate: Fri Aug 9 16:20:59 2024 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Fri Aug 23 02:03:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c842bf2
x11-misc/clipmenu: notify systemd users about expected environment Closes: https://bugs.gentoo.org/844118 Signed-off-by: Ferenc Erki <erkiferenc <AT> gmail.com> Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> x11-misc/clipmenu/clipmenu-6.2.0-r1.ebuild | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/x11-misc/clipmenu/clipmenu-6.2.0-r1.ebuild b/x11-misc/clipmenu/clipmenu-6.2.0-r1.ebuild index a3194cfe7320..d50e4c08f495 100644 --- a/x11-misc/clipmenu/clipmenu-6.2.0-r1.ebuild +++ b/x11-misc/clipmenu/clipmenu-6.2.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2021 Gentoo Authors +# Copyright 2020-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -49,7 +49,18 @@ src_install() { } pkg_postinst() { + if systemd_is_booted || has_version sys-apps/systemd; then + einfo "" + einfo "Make sure to import \$DISPLAY when using the systemd unit for clipmenud" + einfo "without a desktop environment. Preferably check /etc/X11/xinit/xinitrc{,.d}" + einfo "for relevant examples, or at least include the following in your ~/.xinitrc" + einfo "before clipmenud:" + einfo "" + einfo "systemctl --user import-environment DISPLAY" + fi + if ! use dmenu && ! use fzf && ! use rofi ; then + ewarn "" ewarn "Clipmenu has been installed without a launcher." ewarn "You will need to set \$CM_LAUNCHER to a dmenu-compatible app for clipmenu to work." ewarn "Please refer to the documents for more info."