MGL: Launch Scripts Via MGL

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 31 times

MGL: Launch Scripts Via MGL

Unread post by held »

I saw the use of MGL as a way to start your favorite games directly from the MiSTer menu.
Would it be possible to launch scripts the same way using the menu core?

This would be ideal for ScummVM, DosBox or any other 3rd party app.

theypsilon
Scripting Wizard
Posts: 106
Joined: Sun May 24, 2020 8:20 pm
Been thanked: 40 times

Re: MGL: Launch Scripts Via MGL

Unread post by theypsilon »

Scripts can do a lot of stuff that a core can't do. It would be very unsafe to open a way to run scripts from outside the Scripts menu (which shows you a warning for this very reason).

held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 31 times

Re: MGL: Launch Scripts Via MGL

Unread post by held »

Whats unsafe about it?

theypsilon
Scripting Wizard
Posts: 106
Joined: Sun May 24, 2020 8:20 pm
Been thanked: 40 times

Re: MGL: Launch Scripts Via MGL

Unread post by theypsilon »

Scripts run with root privileges and have an internet connection available. If you run a malicious script, it could infect your MiSTer very quickly with any kind of malware.

held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 31 times

Re: MGL: Launch Scripts Via MGL

Unread post by held »

And that would not be the case if a malicious script is run from the scripts menu?

theypsilon
Scripting Wizard
Posts: 106
Joined: Sun May 24, 2020 8:20 pm
Been thanked: 40 times

Re: MGL: Launch Scripts Via MGL

Unread post by theypsilon »

The script menu shows you a warning for this very reason. If scripts are showing up as cores, people will not be aware of the risk they imply.

Post Reply