You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to put a string in my clipboard when I press some special keys combination.
For this I use KDE Plasma custom keyboard shortcuts (Settings / Shortcuts) to call a script when I press, for example, Ctrl+Shift+F11.
The sript contains only this :
echo "Hello $(date)" | /usr/bin/wl-copy
It does not work, and journalctl displays this :
Dec 27 11:36:48 miseriez kwin_wayland[1702]: kf.service.services: The desktop entry file "/usr/share/applications/org.freedesktop.Xwayland.desktop" has Type= "Application" but has no Exec field.
Dec 27 11:36:48 miseriez kwin_wayland[1702]: kf.service.services: The desktop entry file "/usr/share/applications/logmgr.desktop" has Type= "Application" but has no Exec field.
Dec 27 11:36:48 miseriez kstart5[47378]: Omitting both --window and --windowclass arguments is not recommended
Dec 27 11:36:48 miseriez kwin_wayland_wrapper[47390]: wl-clipboard has been launched with a closed standard file descriptor. This is a bug in the software that has launched wl-clipboard. Aborting.
Dec 27 11:36:48 miseriez audit[47390]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=47390 comm="wl-copy" exe="/usr/bin/wl-copy" sig=6 res=1
Dec 27 11:36:48 miseriez audit: BPF prog-id=159 op=LOAD
Dec 27 11:36:48 miseriez audit: BPF prog-id=160 op=LOAD
Dec 27 11:36:48 miseriez audit: BPF prog-id=161 op=LOAD
Dec 27 11:36:48 miseriez systemd[1402]: Started app-clip0.sh-9c4d567d871f4eb98c0cc056bd63abc2.scope - /home/yvan/bin/clip0.sh.
Dec 27 11:36:48 miseriez systemd[1]: Started [email protected] - Process Core Dump (PID 47392/UID 0).
Dec 27 11:36:48 miseriez audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@12-47392-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 27 11:36:48 miseriez systemd-coredump[47393]: [🡕] Process 47390 (wl-copy) of user 1000 dumped core.
Module libffi.so.8 from rpm libffi-3.4.4-4.fc39.x86_64
Module libwayland-client.so.0 from rpm wayland-1.22.0-2.fc39.x86_64
Module wl-copy from rpm wl-clipboard-2.2.0-1.fc39.x86_64
Stack trace of thread 47390:
#0 0x00007f727cbf4834 __pthread_kill_implementation (libc.so.6 + 0x90834)
#1 0x00007f727cba28ee raise (libc.so.6 + 0x3e8ee)
#2 0x00007f727cb8a8ff abort (libc.so.6 + 0x268ff)
#3 0x000055b3dce67f00 main (wl-copy + 0x5f00)
#4 0x00007f727cb8c14a __libc_start_call_main (libc.so.6 + 0x2814a)
#5 0x00007f727cb8c20b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2820b)
#6 0x000055b3dce68c35 _start (wl-copy + 0x6c35)
ELF object binary architecture: AMD x86-64
Dec 27 11:36:48 miseriez kwin_wayland_wrapper[47388]: /home/yvan/bin/clip0.sh: line 4: 47389 Done echo "Hello $(date)"
Dec 27 11:36:48 miseriez kwin_wayland_wrapper[47388]: 47390 Aborted (core dumped) | /usr/bin/wl-copy
Dec 27 11:36:48 miseriez systemd[1]: [email protected]: Deactivated successfully.
Dec 27 11:36:48 miseriez audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@12-47392-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Dec 27 11:36:48 miseriez audit: BPF prog-id=161 op=UNLOAD
Dec 27 11:36:48 miseriez audit: BPF prog-id=160 op=UNLOAD
Dec 27 11:36:48 miseriez audit: BPF prog-id=159 op=UNLOAD
Dec 27 11:36:49 miseriez abrt-server[47405]: Deleting problem directory ccpp-2023-12-27-11:36:48.710434-47390 (dup of ccpp-2023-12-27-11:21:22.466982-44989)
Dec 27 11:36:49 miseriez abrt-applet[2242]: g_app_info_should_show: assertion 'G_IS_APP_INFO (appinfo)' failed
Dec 27 11:36:49 miseriez abrt-notification[47447]: [🡕] Process 44989 (wl-copy) crashed in main()
It seems something is wrong here
Kind regards
The text was updated successfully, but these errors were encountered:
KDE launches your script with closed stdio fds, which is absolutely unsupported by, and will silently and subtly break, like 99.9% of Unix software. wl-clipboard in particular got bitten by this in the past (see the original report in #153), so it now contains the logic to detect this case and abort, instead of trying to proceed and subsequently breaking in mysterious ways.
In fact, wl-clipboard tells you that it has detected this, and that this is an issue with KDE and not with wl-clipboard itself, here it is in your log:
Dec 27 11:36:48 miseriez kwin_wayland_wrapper[47390]: wl-clipboard has been launched with a closed standard file descriptor. This is a bug in the software that has launched wl-clipboard. Aborting.
Please give me feedback on that message — it is not clear enough? Why did you report this to me, instead of to KDE?
Hi,
I'm trying to put a string in my clipboard when I press some special keys combination.
For this I use KDE Plasma custom keyboard shortcuts (Settings / Shortcuts) to call a script when I press, for example, Ctrl+Shift+F11.
The sript contains only this :
It does not work, and journalctl displays this :
It seems something is wrong here
Kind regards
The text was updated successfully, but these errors were encountered: