mcobit/retrosmc

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

Opened this issue · 0 comments

dnk8n commented

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.