请问如何通过代码或者命令复制文件到剪切板 #5144
Answered
by
BLumia
wenfer
asked this question in
Development Questions | 开发答疑
请问如何通过代码或者命令复制文件到剪切板
#5144
-
我看ctrl+c是可以复制文件的,但是如果使用xsel命令就只能复制文本,请问,如果能够引用ctrl+c的功能把文件复制到剪切板呢 |
Beta Was this translation helpful? Give feedback.
Answered by
BLumia
Aug 9, 2023
Replies: 2 comments
-
xclip ,wl-copy |
Beta Was this translation helpful? Give feedback.
0 replies
-
复制内容的属性实质是剪切版里存储的 MimeType 的差异,比如复制文件就可以是 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wenfer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
复制内容的属性实质是剪切版里存储的 MimeType 的差异,比如复制文件就可以是
text/uri-list
。具体的话 xclip 之类就可以满足需求,可以参考 https://askubuntu.com/questions/211250/how-to-copy-many-files-to-clipboard-from-the-command-line