Add a WX_APPNAME_DATA_DIR hack for wxStandardPaths::GetDataDir().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Oct 2009 22:38:03 +0000 (22:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Oct 2009 22:38:03 +0000 (22:38 +0000)
commit306a5d95154602e34bd752aa18859931018d26d5
treed905c0918b7ad2be747618821ae6c571ba07d479
parent4f83b9fc549a66de1e76362c9b1ff78236ef7ec7
Add a WX_APPNAME_DATA_DIR hack for wxStandardPaths::GetDataDir().

Applications using wxStandardPaths::GetDataDir() to find their files under
Unix can't be ran without being installed as they look for their data files
under $prefix/share/appname. Make it possible to override this location by
setting WX_APPNAME_DATA_DIR environment variable to allow running them without
installation.

Notice that this shouldn't present any security risk unless the application is
SUID (which would be a very bad idea anyhow).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
interface/wx/stdpaths.h
src/unix/stdpaths.cpp