This site requires JavaScript, please enable it in your browser!
Greenfoot back
fordprefect2012
fordprefect2012 wrote ...

2012/9/18

Changing initial scenario pathway

fordprefect2012 fordprefect2012

2012/9/18

#
Hi there, I am trying to install Greenfoot on computers that have a security policy on them. It installs fine but when a student goes to start a new scenario it allows access to the C: Drive so the network manager is not impressed. I know that I can change the path of the home directory using bluej.defs but that does not seem to alter the path to inially access the scenarios, is there another path to do that. Thanks in advance
plcs plcs

2012/9/18

#
Hi, By "Allow access", do you mean that it show files in the C drive, or do you mean it allows writing to the C drive? Thanks
davmac davmac

2012/9/18

#
The initial path can be set by the following (awkwardly-named) property: extensions.rmiextension.RMIExtension.settings.bluej.projectPath=N:\\ ... which you can set in greenfoot.defs (and possibly also in bluej.defs, though I didn't try that). If you have an existing greenfoot.properties file (in the "greenfoot" folder in your own home folder) you will need to delete it for the setting in greenfoot.defs to take effect.
JGScott JGScott

2012/9/20

#
Hi, Is it possible to move the Scenarios folder out of the C:\Program Files folder. The problem we have is when students open the Greenfoot software and click open scenario they are pointed to the program files folder. Can this pointer be redirected? Thanks
Gevater_Tod4711 Gevater_Tod4711

2012/9/20

#
You can change the folder of a Scenario. I think greenfoot will indicate the last path which was called. Otherwise you have to vond the path yourself.
JGScott JGScott

2012/9/20

#
Thanks for the reply, can I set the path using one of the .defs files? So the software does not point to C:\Program Files\Greenfoot\Scenarios when the user is using the software. Thanks
davmac davmac

2012/9/20

#
My post above describes how to do this.
JGScott JGScott

2012/9/21

#
I have put the line extensions.rmiextension.RMIExtension.settings.bluej.projectPath=N:\\ into both the bluej and greenfoot .defs but it is still pointing to the scenarios folder in Program Files when a user clicks "Choose a scenario" on the initial startup screen. Sorry, am I missing something? Thanks
davmac davmac

2012/9/21

#
I did not realise you were referring to the file chooser that appears after the "first user" dialog. In that case, you can change the "greenfoot.scenarios" setting instead (or as well): greenfoot.scenarios=N:\\ ("N:\\" should be replaced with an appropriate path; backslashes do need to be doubled, however, as in this example). Changing this setting also affects where Greenfoot looks for the tutorial scenario, so if you want the "open tutorial and tutorial scenario" button to work, you'll need to copy the tutorial scenario ("wombats") to the specified location. I hope this makes sense!
JGScott JGScott

2012/9/21

#
Nice one. Changing the greenfoot.scenarios has hidden the C:\ from users. I will put the scenarios etc into a shared drive the users can browse to. Thanks for the help.
You need to login to post a reply.