像 xclip 这样的软件几乎是所有带有 X 的 Linux 发行版的标准软件?
我有一个应用程序需要访问 *nix 操作系统上的剪贴板,但由于它的工作方式,我无法访问 X 事件循环。因此,我需要向另一个应用程序发送命令以执行字符串的复制粘贴。我原本打算使用 xclip,直到我发现它并不是每个 Linux 发行版的标准配置。是否有一个应用程序是每个(或几乎每个)Linux 发行版的标准应用程序,可以复制粘贴字符串?
谢谢
I have an application that needs to access the clipboard on *nix OSs but I do not have access to the X event loop because of how it works. Therefore I need to send a command to another application to perform copy paste of strings. I was going to use xclip until I found out it is not standard with every Linux distro. Is there an application that comes standard on every (or almost every) Linux distro that can do copy paste of strings?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我非常有信心,您唯一的其他合理选择是
xsel
,而且这并不比xclip
更安全。如果您真的绝望,请检查 Vim 或 Emacs 是否编译有 X 支持,在这种情况下,您可以让它们自动为您处理它,但这不太可能。
I'm pretty confident that your only other reasonable option is
xsel
, and that's not really any safer a bet thanxclip
.If you're really desperate, check whether Vim or Emacs is compiled with X support, in which case you could automate them into handling it for you, but this is a longshot.