retrosmc icon indicating copy to clipboard operation
retrosmc copied to clipboard

If symbolic links are used and affect retropie.sh, kodi launcher add-on does not work anymore

Open dnk8n opened this issue 9 years ago • 0 comments

I solved this issue in the following way Directory: /home/osmc/.kodi/addons/plugin.program.retropie-launcher/ File: 'addon.py' Workaround: importing and making use of the module 'subprocess' instead of 'os'

  • Detail The edited line that calls the retropie.sh script is: output = subprocess.call(["/home/osmc/RetroPie/scripts/retropie.sh"], shell = True)

I do want to find a more secure way of doing this. Apparently 'shell = True' is not good for security. But at the moment this is a good workaround for me. Hope it helps.

dnk8n avatar Jan 23 '16 07:01 dnk8n