I hide (not to kill and hide) XBMC for raspberry pi?

On xbmc I have written only a catalog, clicking on the item you want to run my app, while hide xbmc and start again as my app quits

I try to

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"}')

I took this code from a plugin that launches the application on MAC OS

有帮助吗?

解决方案

like that earned

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"}')
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top