mushanshitiancai / vscode-paste-image

paste image from clipboard to markdown/asciidoc directly!
MIT License
424 stars 129 forks source link

Paste not work on Centos7 #54

Open wre232114 opened 4 years ago

wre232114 commented 4 years ago

I configured as readme. But when i copy a img from shortcut or file. The file generated in my configured path is always empty, which means when i press ctrl+alt+v, a file is generated in the right path but it's size is 0.

wre232114 commented 4 years ago

就是在centos 7 下,粘贴出来的是一个空文件

mushanshitiancai commented 4 years ago

xclip安装了么,测试可以使用么

wre232114 commented 4 years ago

xclip安装了么,测试可以使用么

可以使用,xclip命令测试正常

mushanshitiancai commented 4 years ago

可以用代码目录下的res/linux.sh脚本试一下,插件是调用这个脚本来保存图片的

wre232114 commented 4 years ago

可以用代码目录下的res/linux.sh脚本试一下,插件是调用这个脚本来保存图片

测试了好像是xclip的问题,我的xclip从剪切板读取不到图片,只能读取到文字。版本是0.12。但是从文件经过xclip复制到clipboard是正常的,在其他软件,比如shutter或者chrome里面,点击复制图像,然后再用xclip从clipboard输出到文件得到就是一个空文件

mushanshitiancai commented 4 years ago

可以研究下为什么xclip无法复制图片,可能是因为某些驱动或者依赖导致xclip无法获取图像

在 2019-12-19 10:44:07,"bright" notifications@github.com 写道:

可以用代码目录下的res/linux.sh脚本试一下,插件是调用这个脚本来保存图片

测试了好像是xclip的问题,我的xclip从剪切板读取不到图片,只能读取到文字。版本是0.12。但是从文件经过xclip复制到clipboard是正常的,在其他软件,比如shutter或者chrome里面,点击复制图像,然后再用xclip从clipboard输出到文件得到就是一个空文件

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.