[Qgis-developer] QGIS Preview Release 2

William Kyngesburye woklist at kyngchaos.com
Fri Sep 15 15:50:04 EDT 2006


On Sep 15, 2006, at 2:09 PM, Tim Sutton wrote:

>> What about the location of the Qt plugins?
>
> You can add search paths for qt plugns at runtime so they could be
> placed into the bundle.

Does the Mac QGIS do this now for the Qt plugins?  If the Qt plugins  
are included in the app package, they should be automatically  
included in the Qt plugin search path, so the user doesn't have to  
mess around with that.

>>
>> I didn't notice, but is there an external QGIS plugins folder, like
>> in /Library/Application Support?  This (and a user's home/Library) is
>> where any 3rd party qgis plugins should go - bad form to alter an
>> installed application.
>
> Ah good point. Bear in mind I am a mac neophyte :-) It should not be
> hard to add some mac specific code telling it to search in the
> /Library/Application Support/QGIS/ dir or whathave you.
>
That should be done at some time before a final release.  And  
probably use a subfolder in the QGIS folder, to keep things organized  
- the App Supp could also potentially be used for user addons, like  
themes, SVG graphics, etc.

Theere would be at least 2 folders to add to the QGIS plugins and  
other extras:

/Library/Application Support/QGIS
$HOME/Library/Application Support/QGIS

Another not-so-common one is a network Library folder (can't recall  
the exact path).  The user Library should be searched before the  
global Library, or, the user overrides the global.

Subfolders in both could be (mirroring what's in the QGIS app):

images/north_arrows
plugins
qt_plugins (for possible added Qt plugins needed by a 3rd party qgis  
plugin)
svg
themes

And these would have to be added to appropriate search paths  
automatically on startup.


I added a similar thing to my GDAL framework - replaced and added  
extra search paths for GDAL plugins, instead of the default  
$GDAL_PREFIX/lib/gdalplugins.  Now it looks in the framework and the  
local and user Library App Support.

-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly  
what the universe is for and why it is here, it will instantly  
disappear and be replaced by something even more bizarrely  
inexplicable.  There is another theory which states that this has  
already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro





More information about the Qgis-developer mailing list