diff options
author | Ferenc Erki <erkiferenc@gmail.com> | 2024-08-09 18:20:59 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz@gentoo.org> | 2024-08-22 22:03:11 -0400 |
commit | 8c842bf21dbd9bb41c1b19250431488257882f26 (patch) | |
tree | ef42e5f56fe3c8ae010c434a0667e98e4d650997 /x11-misc/clipmenu | |
parent | x11-misc/clipmenu: add github upstream metadata (diff) | |
download | gentoo-8c842bf21dbd9bb41c1b19250431488257882f26.tar.gz gentoo-8c842bf21dbd9bb41c1b19250431488257882f26.tar.bz2 gentoo-8c842bf21dbd9bb41c1b19250431488257882f26.zip |
x11-misc/clipmenu: notify systemd users about expected environment
Closes: https://bugs.gentoo.org/844118
Signed-off-by: Ferenc Erki <erkiferenc@gmail.com>
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Diffstat (limited to 'x11-misc/clipmenu')
-rw-r--r-- | x11-misc/clipmenu/clipmenu-6.2.0-r1.ebuild | 13 |
1 files changed, 12 insertions, 1 deletions
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." |