Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sorry for the vague header but i found no better one.

This is the situation: I am teaching a GIS course in a local collage using QGIS (qgis4w). The way our lab pc's work is that they delete all added material every start up from the C:\ drive. They also have a D:\ drive where data can be saved. My question is, is there a way to enable plugin installation in this configuration. I thought of something like moving the plugin definition file and the plugin folder to D:\

thanks for any idea yair

share|improve this question
add comment

1 Answer 1

Sure thing. There are two options here:

One is that you can start QGIS with the --configpath arg so that all the configuration including plugins are stored at a custom path. Like so:

qgis.bat --configpath "D:\{somepath}"

You can put that in a .bat file and get the students to launch that.

This also has the advantage of being able to run QGIS, set it up how you like it, install some plugins, then just move the whole D:\{somepath} to a new home e.g. each machines D:\ so that each student has the same setup.

OR

You can set the QGIS_PLUGINPATH variable before you load QGIS which will tell QGIS to load extra plugins from that path. Like:

set QGIS_PLUGINPATH = D:\{somepath}

However with QGIS_PLUGINPATH QGIS will still install into the users home folder on the main drive (C:)

share|improve this answer
    
thanks for the tip. I tested it successfully for plugins on Win XP + QGIS lisboa 1.8. But configuration that is stored into registry keys are not stored into configpath.. Do you know if it is possible, and how? Régis –  user6958 Oct 11 '12 at 15:19
    
I have a feeling that it might be broken in 1.8. Can you try the latest dev build (I know it work there because I am using it) –  Nathan W Oct 11 '12 at 21:24
    
Thank, i will only be able to try this on sunday –  yair suari Oct 12 '12 at 8:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.