Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
I found a way to start an external process without the command prompt. The question is now should XBMC wait and do nothing until the process returns or shall it still run further.
I dunno about the side effects though but one can test both methods.
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
Let's see. I would just implement it as python system command or as additional python command so the default behavior of XBMC won't change. What does XBMC does today if this plugin/script is started? Does it still play music? If yes not freezing it would play further (but of course needs to be tested).
@Gamester: the implementation would be similar to the already existing CUtil::Command for Linux (dunno if it's in use anywhere).
My implementation would be purely win32 unfortunately.
Posts: 3,918
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,918
Would there be a way to have this tied to a menu item? So for example I can have a menu item called "SageTV" and when I select that item it opens SageTV?
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
I'm not deep into python so I can't say how and if something might be possible but I can maybe offer two system commands (exec builtin) one waits for the script to exit and one just opening a shell (without the dos box).
Not sure if this will work but worth a try.
Posts: 10,520
Joined: Sep 2003
Reputation:
10
Gamester17
Team-XBMC Forum Moderator
Posts: 10,520
I would prefer the basic adding and launching of executables from XBMC's program section to be a native code function just like it is on the Xbox version of XBMC.
Posts: 3,918
Joined: Apr 2004
Reputation:
29
kricker
Team-XBMC QA Specialist
Posts: 3,918
Sorry for the dumb "not a coder" question. But how do I test with this .exe? Do we need to write a python script to use the new functions?