mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Merge pull request #6502 from elpaso/bugfix-18230-server-prefix-path
[bugfix][server] Fix prefix path for server
This commit is contained in:
commit
baeaeace10
@ -220,7 +220,12 @@ void QgsApplication::init( QString profileFolder )
|
||||
setPrefixPath( myPrefix, true );
|
||||
#else
|
||||
QDir myDir( applicationDirPath() );
|
||||
myDir.cdUp();
|
||||
// Fix for server which is one level deeper in /usr/lib/cgi-bin
|
||||
if ( applicationDirPath().contains( QStringLiteral( "cgi-bin" ) ) )
|
||||
{
|
||||
myDir.cdUp();
|
||||
}
|
||||
myDir.cdUp(); // Go from /usr/bin or /usr/lib (for server) to /usr
|
||||
QString myPrefix = myDir.absolutePath();
|
||||
setPrefixPath( myPrefix, true );
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user