Showing with 27 additions and 192 deletions.
  1. +6 −0 debian/changelog
  2. +0 −170 debian/qgis-icon.xpm
  3. +1 −1 debian/qgis.install
  4. +0 −1 debian/rules
  5. +20 −20 src/core/qgsapplication.cpp
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
qgis (2.0.1-1) UNRELEASED; urgency=low

* drop qgis_icon.xpm and use "upstream" version

-- Jürgen E. Fischer <jef@norbit.de> Sun, 15 Sep 2013 21:59:49 +0200

qgis (2.0.1) UNRELEASED; urgency=low

* branch of version 2.0
Expand Down
170 changes: 0 additions & 170 deletions debian/qgis-icon.xpm

This file was deleted.

2 changes: 1 addition & 1 deletion debian/qgis.install
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ usr/lib/qgis/plugins/libzonalstatisticsplugin.so
usr/lib/qgis/plugins/libheatmapplugin.so
usr/lib/qgis/plugins/libtopolplugin.so
usr/lib/qgis/qgis_help
usr/share/pixmaps/qgis-icon.xpm
usr/share/pixmaps/qgis-icon.png
usr/share/pixmaps/qgis-mime-icon.png
usr/share/pixmaps/qgis-mime-icon.png usr/share/icons/crystalsvg/128x128/mimetypes
../qgis.desktop usr/share/applications
Expand Down
1 change: 0 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ install: build
install -o root -g root -d $(CURDIR)/debian/tmp/usr/share/pixmaps
install -o root -g root -m 644 $(CURDIR)/images/icons/qgis-icon.png $(CURDIR)/debian/tmp/usr/share/pixmaps
install -o root -g root -m 644 $(CURDIR)/images/icons/qgis-mime-icon.png $(CURDIR)/debian/tmp/usr/share/pixmaps
install -o root -g root -m 644 $(CURDIR)/debian/qgis-icon.xpm $(CURDIR)/debian/tmp/usr/share/pixmaps

# Build architecture-independent files here.
binary-indep: build install
Expand Down
40 changes: 20 additions & 20 deletions src/core/qgsapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,6 @@ void QgsApplication::init( QString customConfigPath )
}
ABISYM( mSystemEnvVars ) = systemEnvVarMap;

// set a working directory up for gdal to write .aux.xml files into
// for cases where the raster dir is read only to the user
// if the env var is already set it will be used preferentially
QString myPamPath = qgisSettingsDirPath() + QString( "gdal_pam/" );
QDir myDir( myPamPath );
if ( !myDir.exists() )
{
myDir.mkpath( myPamPath ); //fail silently
}


#if defined(Q_WS_WIN32) || defined(WIN32)
CPLSetConfigOption( "GDAL_PAM_PROXY_DIR", myPamPath.toUtf8() );
#else
//under other OS's we use an environment var so the user can
//override the path if he likes
int myChangeFlag = 0; //whether we want to force the env var to change
setenv( "GDAL_PAM_PROXY_DIR", myPamPath.toUtf8(), myChangeFlag );
#endif
}

QgsApplication::~QgsApplication()
Expand Down Expand Up @@ -894,8 +875,27 @@ void QgsApplication::applyGdalSkippedDrivers()
GDALAllRegister(); //to update driver list and skip missing ones
}

bool QgsApplication::createDB( QString* errorMessage )
bool QgsApplication::createDB( QString *errorMessage )
{
// set a working directory up for gdal to write .aux.xml files into
// for cases where the raster dir is read only to the user
// if the env var is already set it will be used preferentially
QString myPamPath = qgisSettingsDirPath() + QString( "gdal_pam/" );
QDir myDir( myPamPath );
if ( !myDir.exists() )
{
myDir.mkpath( myPamPath ); //fail silently
}

#if defined(Q_WS_WIN32) || defined(WIN32)
CPLSetConfigOption( "GDAL_PAM_PROXY_DIR", myPamPath.toUtf8() );
#else
//under other OS's we use an environment var so the user can
//override the path if he likes
int myChangeFlag = 0; //whether we want to force the env var to change
setenv( "GDAL_PAM_PROXY_DIR", myPamPath.toUtf8(), myChangeFlag );
#endif

// Check qgis.db and make private copy if necessary
QFile qgisPrivateDbFile( QgsApplication::qgisUserDbFilePath() );

Expand Down