哪个剪贴板 Autokey 使用 "clipboard.get_selection()" 存储数据

Which clipboard Autokey stores the data with "clipboard.get_selection()"

自动键功能,text = clipboard.get_selection(),所选数据存储在哪个剪贴板?

我正在使用 Linux Mint 19.1 Cinnamon 和 Python 3.6。我正在搜索 Autokey 的 (Python 3) 函数 clipboard storagetext = clipboard.get_selection().

我假设它存储在 X 剪贴板的三个剪贴板之一中,但是 none 的 Gnome 兼容剪贴板查看器显示它。

我需要知道如何在自动键(或 Python)脚本中引用特定的剪贴板,以查看脚本更改数据前后的数据。

将此代码粘贴到 Autokey3 键盘宏中。 (脚本)并使用任何键定义来激活它。

在 Linux(或任何 X11 应用程序)中,剪贴板所有者进程必须是 运行 # 能够粘贴剪贴板内容吗?

Select 任何文本。

import time
import subprocess
import sys

t_xt = ""
keyboard.send_keys("<ctrl>+a")   #  select all
time.sleep(.3)                   #  delay of .3 of a second
t_xt = clipboard.get_selection    #  place selection in clipboard

time.sleep(.3)

keyboard.send_keys(t_xt)         #  retrieves the t_xt I want to know where this is stored and how I can refer it in an Autokey script?
keyboard.send_keys("<ctrl>+a") #  This pastes the contents of a different clipboard.

sys.exit()

根据this文档,它使用 X 鼠标选择剪贴板。