![获取 openSUSE Tumbleweed 或 Leap 42.1 中的剪贴板历史记录](https://linux22.com/image/87640/%E8%8E%B7%E5%8F%96%20openSUSE%20Tumbleweed%20%E6%88%96%20Leap%2042.1%20%E4%B8%AD%E7%9A%84%E5%89%AA%E8%B4%B4%E6%9D%BF%E5%8E%86%E5%8F%B2%E8%AE%B0%E5%BD%95.png)
我希望访问我之前在 KDE (openSUSE) 中复制到剪贴板的项目(文本)。自从复制了项目后我还没有重新启动系统。
有什么方法可以访问此操作系统上的剪贴板历史记录吗?另外,如果有人知道适用于其他发行版的方法,欢迎您将它们作为答案,因为我确信它们值得一试。
更新:尝试使用时klipper
出现以下错误:
QSystemTrayIcon::setVisible: No Icon set
Couldn't start kglobalaccel from org.kde.kglobalaccel.service: QDBusError("org.freedesktop.DBus.Error.Spawn.ChildSignaled", "Process org.kde.kglobalaccel received signal 6")
Failed to connect to the kglobalaccel daemon QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not get owner of name 'org.kde.kglobalaccel': no such name")
log_klipper: Failed to load history resource. Clipboard history cannot be read. : History file does not exist
Failed to connect to the kglobalaccel daemon QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not get owner of name 'org.kde.kglobalaccel': no such name")
Failed to connect to the kglobalaccel daemon QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not get owner of name 'org.kde.kglobalaccel': no such name")
Failed to connect to the kglobalaccel daemon QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not get owner of name 'org.kde.kglobalaccel': no such name")
Failed to connect to the kglobalaccel daemon QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not get owner of name 'org.kde.kglobalaccel': no such name")
Failed to connect to the kglobalaccel daemon QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not get owner of name 'org.kde.kglobalaccel': no such name")
Failed to connect to the kglobalaccel daemon QDBusError("org.freedesktop.DBus.Error.NameHasNoOwner", "Could not get owner of name 'org.kde.kglobalaccel': no such name")
QSystemTrayIcon::setVisible: No Icon set
答案1
在 中找到klipper
历史文件夹~/.local/share/klipper
。在文件cat
上运行history2.lst
会输出自上次重新启动服务器实例以来的剪贴板历史记录(必须运行rcxdm
)。无法找到我正在寻找的补充信息,因为history1.lst/history.lst
目录中不存在(我认为如果有第二个文件,则应该有第一个文件......),但我似乎已经按照最初的要求回答了我自己的问题。
更新:openSUSE Tumbleweed 最近的更新似乎还在任务栏上添加了剪贴板图标,这使得您可以轻松查看剪贴板历史记录。