diff --git a/src/app/main.cpp b/src/app/main.cpp
index 709a6cf91d626a4b18a5acffc3e5c6c5115c8d81..937f6c7076edefc18eb7d365bec8f33645bee897 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -182,7 +182,8 @@ int main(int argc, char **argv)
     QString locale = QLocale::system().name();
 
     // Must be done before any QSettings class is created
-    QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, QLatin1String(SHARE_PATH));
+    QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope,
+            QCoreApplication::applicationDirPath()+QLatin1String(SHARE_PATH));
     // keep this in sync with the MainWindow ctor in coreplugin/mainwindow.cpp
     const QSettings settings(QSettings::IniFormat, QSettings::UserScope,
                                  QLatin1String("Nokia"), QLatin1String("QtCreator"));