Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

尝试用pywpsrpc打开app时弹出空白的许可协议导致打开进程失败 #9

Closed
zhangsikai123 opened this issue Jul 13, 2020 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@zhangsikai123
Copy link

Describe the bug
尝试用pywpsrpc打开app时弹出空白的许可协议导致打开进程失败
To Reproduce

from pywpsrpc.rpcwpsapi import (createWpsRpcInstance, wpsapi)
from pywpsrpc import RpcIter
hr, rpc = createWpsRpcInstance()
hr, app = rpc.getWpsApplication() [弹出无内容的金山用户许可协议和隐私协议无法接受]
# hr = -2147483640

Expected behavior
打开wps进程并且使用wps创建空白文档
Screenshots
Screen Shot 2020-07-13 at 7 07 46 PM

Environment
OS : Ubuntu 20.04 LTS
Python: 3.8.2
Qt: qt5-default
WPS 2019 11.1.0.9604

@zhangsikai123 zhangsikai123 added the bug Something isn't working label Jul 13, 2020
@timxx
Copy link
Owner

timxx commented Jul 13, 2020

用户协议这个需要先运行过一次wps手动接受。。目前没有控制这方面的api,当然你可以自己写脚本修改配置做到。。

@zhangsikai123
Copy link
Author

用户协议这个需要先运行过一次wps手动接受。。目前没有控制这方面的api,当然你可以自己写脚本修改配置做到。。
这个协议我在第一次打开wps的时候已经接受了,目前手动打开是不会弹出这个协议框的。P.S. 我目前开启的是多组件模式。谢谢您的回复anyways

@timxx
Copy link
Owner

timxx commented Jul 14, 2020

我用的archlinux并没有出现你说的情况,首次运行确实会弹出,但是能正常显示及点击。。接受后后面不会再弹出来了
看你是用root跑了?

@zhangsikai123
Copy link
Author

是的。我刚刚试了一下,非root下不会出现这种情况。problem solved,感谢

@timxx timxx closed this as completed Jul 27, 2020
@vba34520
Copy link

用户协议这个需要先运行过一次wps手动接受。。目前没有控制这方面的api,当然你可以自己写脚本修改配置做到。。

image
这个协议有没有办法处理掉呢,这样就可以完全无界面跑WPS了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants