#831413 xfce4-genmon-plugin: missing /dev/stdin when spawned command is xsel

Package:
xfce4-genmon-plugin
Source:
xfce4-genmon-plugin
Description:
Generic Monitor for the Xfce4 panel
Submitter:
Nathaniel Morck Beaver
Date:
2023-04-23 22:15:06 UTC
Severity:
normal
#831413#5
Date:
2016-07-15 18:50:43 UTC
From:
To:
Dear Maintainer,

When the spawned command is set to 'xsel' to show the text currently in
the primary clipboard, 'xsel' fails because there is no /dev/stdin,
presumably since genmon_Spawn() closes stdin.

This is also reproducible on 3.4.0-2+b1 on Debian unstable.

One workaround is to write a wrapper script like this:

     xsel < /dev/stdin

However, it would be better if this were not necessary.

I will also file a feature request for 'xsel' in case that would be better.

Sincerely,

Nathaniel Beaver

P.S. Another workaround is to use 'xclip -o', since 'xclip' does not
require stdin.

#831413#10
Date:
2023-04-23 22:04:18 UTC
From:
To:
Hi,

it looks to me as this is a similar symptom to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000793, since it is
also related to standard input.

If so, then the fix has been merged:
https://gitlab.xfce.org/cquike/xfce4-genmon-plugin/-/merge_requests/1

The fix is part of the recent release 4.2.0
(https://docs.xfce.org/panel-plugins/xfce4-genmon-plugin/start#latest_release),
so it would be great to get that fixed for bookworm.