我隐藏(不是杀死和隐藏)XBMC for raspberry pi?
在xbmc上我只编写了一个目录,单击要运行我的应用程序的项目,同时隐藏xbmc并在我的应用程序退出时重新开始
我试着
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')
os.system('sleep 10') //run my app
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')
我从一个在MAC OS上启动应用程序的插件中获取此代码
答案 0 :(得分:0)
就像赚了那样
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')
os.system('sh -c "sudo killall -STOP xbmc.bin && runmyapp && sudo killall -CONT xbmc.bin"') //run my app
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')