17 Aug
2024
17 Aug
'24
21:56
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 - 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! -- David C. Rankin, J.D.,P.E.