FS#68288 - [clipmenu] Breaks with 6.2.0.1
Attached to Project:
Community Packages
Opened by Karl Hernandez (SirMars) - Friday, 16 October 2020, 22:45 GMT
Last edited by Morten Linderud (Foxboron) - Monday, 16 November 2020, 17:59 GMT
Opened by Karl Hernandez (SirMars) - Friday, 16 October 2020, 22:45 GMT
Last edited by Morten Linderud (Foxboron) - Monday, 16 November 2020, 17:59 GMT
|
Details
Description: Clipmenu gives me an error of
`/usr/bin/clipmenu: line 42:
/run/user/1000/clipmenu.6.karl/line_cache: No such file or
directory` and clipmenud.serivce no longer starts. I have
downgraded to multiple versions and the issues seems to be
only with 6.2.0.1.
Additional info: * package version(s): 6.2.0.1 * config and/or log files etc. No logs since the service doesn't start. * link to upstream bug report, if any: Might have to do with issue? https://github.com/cdown/clipmenu/issues/141 Steps to reproduce: upgrade to 6.2.0.1 and `$ clipmenu` will result in /usr/bin/clipmenu: line 42: /run/user/1000/clipmenu.6.karl/line_cache: No such file or directory fixed by downgrading to 6.1.0.2 or below. |
This task depends upon
Closed by Morten Linderud (Foxboron)
Monday, 16 November 2020, 17:59 GMT
Reason for closing: Not a bug
Additional comments about closing: Reason for request: The issue is a user one caused by a lack of DISPLAY environmental variable since the service no longer provides a fixed setting.
Monday, 16 November 2020, 17:59 GMT
Reason for closing: Not a bug
Additional comments about closing: Reason for request: The issue is a user one caused by a lack of DISPLAY environmental variable since the service no longer provides a fixed setting.
```
[Unit]
Description=Clipmenu daemon
[Service]
ExecStart=/usr/bin/clipmenud
Restart=always
RestartSec=500ms
Environment=DISPLAY=:0
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
ProtectControlGroups=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=
RestrictRealtime=yes
[Install]
WantedBy=default.target
```
I started the service with systemctl --user enable clipd.service and disable the old service. Hope that helps!
systemctl --user --import-environment DISPLAY
in your ~/.xinitrc or within the X startup script of your WM/DE?
Theoretically that sould import the DISPLAY env var into your current systemd-logind session and make it available to all user units that want to output something to $DISPLAY.
And I highly dislike the suggested workaround by re-adding the hardcoded "DISPLAY=:0" because it is not necessarily guaranteed that your X is running at :0.