aardwolf icon indicating copy to clipboard operation
aardwolf copied to clipboard

Clipboard doesn't seem to work with kerberos kcache

Open mpgn opened this issue 5 months ago • 0 comments

Hello,

I noticed that using kerbeos with kcache, the clipboard is never ready, this is the code i use:

timeout_counter = 0
while not clipboard_ready and timeout_counter < 600:  # 30 second timeout
    try:
        data = await asyncio.wait_for(self.conn.ext_out_queue.get(), timeout=0.1)
        if hasattr(data, "type") and data.type.name == "CLIPBOARD_READY":
            clipboard_ready = True
            self.logger.debug("Clipboard is ready!")
            break
    except asyncio.TimeoutError:
        timeout_counter += 1
        continue
    except (ConnectionResetError, ConnectionError, OSError) as e:
        self.logger.debug(f"Connection error while waiting for clipboard: {e!s}")
        self.logger.fail("Connection was reset by the remote host")
        return ""
    except Exception as e:
        self.logger.debug(f"Error waiting for clipboard: {e!s}")
        self.logger.fail("Warning: Clipboard may not be fully initialized, no output can be retrieved")
        return ""

mpgn avatar Jul 15 '25 09:07 mpgn