On 8/17/24 10:38 PM, David C. Rankin wrote:
Devs, All,
Hi David.
I'm getting strange output from suse_paste.sh when pasting. It can't find "session '1"?
The name suse_paste.sh seems odd, the script should be installed by the package as just /usr/bin/susepaste.
Here is what I get when pasting:
Aug 17 15:34:58 - "Tideman W/Debug Output" tideman-fmt.c Pasted as: https://paste.opensuse.org/886f21092d86 Failed to get path for session '1 2': No session '1 2' known Graphics server not found. Copying to clipboard is not possible. expires: Sat Sep 14 03:34:59 PM CDT 2024
This is a new one. Any ideas?
The issue is when multiple login sessions are active under ones username: ``` $ loginctl list-sessions --no-legend | awk "/georg/{ print \$1 }" 1 11 ``` I now submitted a patch for this: https://github.com/openSUSE/paste/pull/25. But there might be other unhandled scenarios. The error handling in this script is unfortunately rather poor. Cheers, Georg