2021-08-15, 16:10
All, didn't find this mentioned anywhere for the 0.10.1 (Matrix) vesion but for those simply launching a Windows app (me) and its on a UNC drive (a NAS in my case), it seems that there is an issue with a 'can't find the file' error in the logs. I did a few mins investigation (so take it for what it is) and corrected this very specific issue bye editing main.py. Seems like there was a 'hack/workaround' for UNC in Python 2 that might not apply for Python 3. So I simply remove lines 8371 to 8377 and voila, my UNC-based apps are launched again (in Windows). Lines are as follows (the same code seems to be elsewhere too):
new_exec_list = list(exec_list)
for i in range(len(exec_list)):
if exec_list[i][0] != '\\': continue
new_exec_list[i] = '\\' + exec_list
[i] log_debug('_run_process() (Windows) Before arg #{} = "{}"'.format(i, exec_list[i]))
log_debug('_run_process() (Windows) Now arg #{} = "{}"'.format(i, new_exec_list[i]))
exec_list = list(new_exec_list)[/i][/i][/i][/i][/i]
And thanks for keeping this app going ... I launch a bunch of external apps and its absolutely critical to my use of Kodi. Now, I can upgrade to Matrix with this addressed!
new_exec_list = list(exec_list)
for i in range(len(exec_list)):
if exec_list[i][0] != '\\': continue
new_exec_list[i] = '\\' + exec_list
[i] log_debug('_run_process() (Windows) Before arg #{} = "{}"'.format(i, exec_list[i]))
log_debug('_run_process() (Windows) Now arg #{} = "{}"'.format(i, new_exec_list[i]))
exec_list = list(new_exec_list)[/i][/i][/i][/i][/i]
And thanks for keeping this app going ... I launch a bunch of external apps and its absolutely critical to my use of Kodi. Now, I can upgrade to Matrix with this addressed!