scratch_gpio icon indicating copy to clipboard operation
scratch_gpio copied to clipboard

Make Scratch Default Project Read Only

Open ryanteck opened this issue 10 years ago • 2 comments

Not sure if this is Pi_ltsp or an ScratchGPIO (Think GPIO) issue but as it loads a project with remote sensor connections enabled as default we found that kids overwrote this project with their code already inside causing issues when we needed to reboot it and not load the project.

ryanteck avatar Feb 14 '15 08:02 ryanteck

In the home directory the user has permission to change the file.

Storing the rsc.sb file in a system directory such as /opt/scratchGPIO5 (Config files for user applications) and then running

sudo chmod 555 /opt/scratchGPIO5/rsc.sb
sudo chown root:root /opt/scratchGPIO5/rsc.sb

Then causes scratch to go read only and requires the user to save elsewhere.

ryanteck avatar Feb 14 '15 10:02 ryanteck

But I imagine users won't be defaulted to /home/pi/Documents/Scratch Projects?

Which would make ScratchGPIO harder to use especially youngsters :(

On 14 February 2015 at 10:45, Ryan Walmsley [email protected] wrote:

In the home directory the user has permission to change the file.

Storing the rsc.sb file in a system directory such as /opt/scratchGPIO5 (Config files for user applications) and then running

sudo chmod 555 /opt/scratchGPIO5/rsc.sb sudo chown root:root /opt/scratchGPIO5/rsc.sb

Then causes scratch to go read only and requires the user to save elsewhere.

— Reply to this email directly or view it on GitHub https://github.com/cymplecy/scratch_gpio/issues/9#issuecomment-74370346.

cymplecy avatar Feb 14 '15 10:02 cymplecy