On 8/17/24 11:56 PM, David C. Rankin wrote:
On 8/17/24 4:26 PM, Georg Pfuetzenreuter via openSUSE Users wrote:
On 8/17/24 10:38 PM, David C. Rankin wrote:
Devs, All,
Hi David.
The issue is when multiple login sessions are active under ones username:
``` $ loginctl list-sessions --no-legend | awk "/georg/{ print \$1 }" 1 11 ```
You nailed it:
$ loginctl list-sessions --no-legend 1 1000 david seat0 2959 user - no - 2 1000 david - 3116 manager - no -
I'm a bit surprised with your output, it does not have any tty information, so whilst my patch will remove the "weird" errors, it would still not make clipboard functionality work for you. I can adjust it to instead read the session based on the seat, I'm not sure how reliable that is, but maybe more than assuming a tty, given a seat0 always exists.
This I've not seen before. More gifts from systemd that just keeps on giving :)
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
Thank you Georg!