Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 844118 - x11-misc/clipmenu systemd user unit not working on non-DE
Summary: x11-misc/clipmenu systemd user unit not working on non-DE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ferenc Erki
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-05-13 22:53 UTC by Rahil Bhimjiani
Modified: 2024-08-23 02:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rahil Bhimjiani 2022-05-13 22:53:20 UTC
by default it doesn't work. These is a fix mentioned on upstream's github. 

"For those using a systemd unit and not using a desktop environment which does it automatically, you must import $DISPLAY so that clipmenud knows which X server to use. For example, in your ~/.xinitrc do this prior to launching clipmenud:

systemctl --user import-environment DISPLAY"

Systemd users should be notified about this via elog
Comment 1 Eli Schwartz gentoo-dev 2024-08-19 20:45:06 UTC
All user sessions should, if overriding an integrated DE experience and not using the template xinitrc, be copy-pasting this from the stock xinitrc:


if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?* ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi


This includes /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
Comment 2 Larry the Git Cow gentoo-dev 2024-08-23 02:08:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c842bf21dbd9bb41c1b19250431488257882f26

commit 8c842bf21dbd9bb41c1b19250431488257882f26
Author:     Ferenc Erki <erkiferenc@gmail.com>
AuthorDate: 2024-08-09 16:20:59 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-08-23 02:03:11 +0000

    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>

 x11-misc/clipmenu/clipmenu-6.2.0-r1.ebuild | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)