summarylogtreecommitdiffstats
path: root/0002-Dont-rely-on-applicationDirPath.patch
blob: 8031267729a08850ca96a7c69a1827fd7fffdb06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/src/sambacommon/sambaengine.cpp b/src/sambacommon/sambaengine.cpp
index 8f36080..2fda3c2 100644
--- a/src/sambacommon/sambaengine.cpp
+++ b/src/sambacommon/sambaengine.cpp
@@ -26,9 +26,6 @@ SambaEngine::SambaEngine(QObject *parent)
 	QObject::connect(&m_qmlEngine, &QQmlEngine::warnings,
 					 this, &SambaEngine::engineWarnings);
 
-	// add import path
-	m_qmlEngine.addImportPath(QCoreApplication::applicationDirPath() + "/qml");
-
 	// create metadata object
 	m_metadata = new SambaMetadata(this);
 }
diff --git a/src/sambacommon/sambametadata.cpp b/src/sambacommon/sambametadata.cpp
index 1c65370..577303d 100644
--- a/src/sambacommon/sambametadata.cpp
+++ b/src/sambacommon/sambametadata.cpp
@@ -122,7 +122,7 @@ void SambaMetadata::loadAllMetadata()
 #endif
 		paths = QString::fromLatin1(envImportPath).split(pathSep, QString::SkipEmptyParts);
 	}
-	paths << (QCoreApplication::applicationDirPath() + "/metadata");
+	paths << "/usr/share/sam-ba/metadata";
 
 	foreach (QString path, paths) {
 		QDir metadataDir(path);