I told in the initial description that xinput was not working any more. I checked again today and it is working again. So for the script only a way for root to determine the current desktop user is missing.
I told in the initial description that xinput was not working any more. I checked again today and it is working again. So for the script only a way for root to determine the current desktop user is missing.