ExecWait not executing command, no log or error message
#1
Hi all,

I'm trying to use the xbmc.executebuiltin command in a Python script (i.e. launched from from the Programs submenu) to run ExecWait passing a command. Kodi minimises but does not launch the command, and there is no logging or information (even in Debug mode) to explain why.

I'm running as:

Code:
xbmc.executebuiltin('System.Exec(/Applications/RetroArch.app/Contents/MacOS/RetroArch)')

Running from a command-line works successfully.

I've tried wrapping the command in quotes, e.g.

Code:
xbmc.executebuiltin('System.Exec(\"/Applications/RetroArch.app/Contents/MacOS/RetroArch\")')

but this too was unsuccessful.

Any feedback or guidance, as to whether this was the preferred way to launch external commands, and whether this is known to work on OSX?

Also, I am running as a script, not an addon - not sure if this is significant or not.
Reply
#2
A possible similar issue here
Reply
#3
Here are a few other options.

http://forum.kodi.tv/showthread.php?tid=304753
Reply
#4
(2017-02-02, 14:41)Protocol-X Wrote: Here are a few other options.

http://forum.kodi.tv/showthread.php?tid=304753

You mean os.system or subprocess.call? Sure, that's an option to get things moving in the meantime.

I'm still keen to try and understand though why the ExecWait command is failing. As it is, there's just no pointers as to what's going wrong internally.
Reply
#5
using those is a more 'pythonic' way to launch external apps i would say.

looking at the source code, i don't think System.Exec() is supported on OSX:
https://github.com/xbmc/xbmc/blob/17.0-K...2541-L2558
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#6
Thanks Ronie, appreciate the pointer to the source.

I'll look into using the OS calls, thanks Protocol-X.

Appreciate the quick responses.
Reply
#7
I raised this as http://trac.kodi.tv/ticket/17331
Reply

Logout Mark Read Team Forum Stats Members Help
ExecWait not executing command, no log or error message0