cymplecy / scratch_gpio

Code for scratch_gpio_handler
42 stars 23 forks source link

Make Scratch Default Project Read Only #9

Open ryanteck opened 9 years ago

ryanteck commented 9 years ago

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 commented 9 years ago

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.

cymplecy commented 9 years ago

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 notifications@github.com 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.