Making some build and installation tricks
Change-Id: I49fb84615212762faf0c543ce142185bb216a8fc
diff --git a/linux/tray-menu.cpp b/linux/tray-menu.cpp
index cfd420a..db3d79e 100644
--- a/linux/tray-menu.cpp
+++ b/linux/tray-menu.cpp
@@ -189,7 +189,7 @@
QProcess *process = new QProcess();
connect(process,SIGNAL(finished(int)),process, SLOT(deleteLater()));
QStringList arguments;
- arguments << QApplication::applicationDirPath() + "/" + SHORTCUT_FILE << QDir::homePath() + AUTOSTART_DIRECTORY;
+ arguments << QString(RESOURCES_DIR) + "/" + SHORTCUT_FILE << QDir::homePath() + AUTOSTART_DIRECTORY;
process->start("cp",arguments);
}
@@ -395,7 +395,7 @@
applyStatusXslt = new QProcess();
QStringList arguments;
- arguments << QApplication::applicationDirPath() + "/" + STATUS_XSLT_FILE << "-";
+ arguments << QString(RESOURCES_DIR) + "/" + STATUS_XSLT_FILE << "-";
connect(applyStatusXslt,SIGNAL(finished(int)), this, SLOT(parseStatusXml()));
//connect(applyStatusXslt,SIGNAL(finished(int)), applyStatusXslt, SLOT(deleteLater()));
applyStatusXslt->start(XSLTPROC,arguments);
@@ -404,7 +404,7 @@
applyFibXslt = new QProcess();
QStringList args;
- args << QApplication::applicationDirPath() + "/" + FIB_XSLT_FILE << "-";
+ args << QString(RESOURCES_DIR) + "/" + FIB_XSLT_FILE << "-";
connect(applyFibXslt,SIGNAL(finished(int)), this, SLOT(parseFibXml()));
//connect(applyFibXslt,SIGNAL(finished(int)), applyFibXslt, SLOT(deleteLater()));
applyFibXslt->start(XSLTPROC,args);