[英]AT-SPI in Upstart
I have created an application that get informations of firefox using AT-SPI and c++ and worked. 我创建了一个使用AT-SPI和c ++获取firefox信息的应用程序,并且可以正常工作。 But it doesn't work while runs as upstart not an application despite the same source code.
但是,即使源代码相同,它也不能作为新贵而不是应用程序运行时不起作用。
The reason is atspi_init() returns error 2. 原因是atspi_init()返回错误2。
I wrote the conf file of upstart like this: 我这样写了新贵的conf文件:
description "firefoxurl daemon"
start on runlevel [2345]
stop on runlevel [!2345]
script
exec /opt/GetCurrentUrlOfFirefox
end script
Can someone tell me why AT_SPI did not work in Upstart? 谁能告诉我为什么AT_SPI在Upstart中不起作用?
If it expects Firefox to be running, that's obviously a false assumption during system startup. 如果它期望Firefox运行,那显然是在系统启动过程中的错误假设。
You should probably be looking at running it from the user's X startup scripts; 您可能应该从用户的X启动脚本中运行它。 and even then, Firefox will usually not start until some time later.
即使这样,Firefox通常也要等一段时间后才能启动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.