[harmattan] proper conf path, closes #107
This commit is contained in:
parent
2b356bf4c3
commit
38b6bcfa4e
2 changed files with 2 additions and 5 deletions
6
main.cpp
6
main.cpp
|
|
@ -59,9 +59,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
|||
|
||||
app->setApplicationVersion(APP_VERSION);
|
||||
app->setApplicationName(TARGET);
|
||||
//app->setOrganizationName("Hauke Schade");
|
||||
app->setOrganizationName(TARGET);
|
||||
|
||||
#if defined(Q_OS_SAILFISH)
|
||||
// check for the old settings file, try to move it to new location
|
||||
QFileInfo settingsfileInfo(".config/Hauke Schade/ttrss.conf");
|
||||
QFile settingsfile(settingsfileInfo.absoluteFilePath());
|
||||
|
|
@ -75,11 +74,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
|||
else
|
||||
settingsfile.rename(".config/" + QString(TARGET) + "/" + QString(TARGET) + ".conf");
|
||||
}
|
||||
#else
|
||||
#endif
|
||||
|
||||
QString locale = QLocale::system().name();
|
||||
qDebug() << "detected locale is " << locale;
|
||||
QTranslator translator;
|
||||
/* the ":/" is a special directory Qt uses to
|
||||
* distinguish resources;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
VERSION = 0.4.4
|
||||
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
|
||||
DEFINES += TARGET=\\\"$$TARGET\\\"
|
||||
|
||||
# Add more folders to ship with the application, here
|
||||
folder_01.source = qml/ttrss/models
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue