summaryrefslogtreecommitdiff
blob: 6e5b46d7c7e067a9ec445c8c7d6210653a8b265d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/locale_dialog.cpp.old
+++ src/locale_dialog.cpp
@@ -85,7 +85,7 @@
 	if (paths.isEmpty()) {
 		QString appdir = QCoreApplication::applicationDirPath();
 		paths.append(appdir);
-		paths.append(appdir + "/../share/" + QCoreApplication::applicationName().toLower());
+		paths.append("@GENTOO_DATADIR@");
 		paths.append(appdir + "/../Resources");
 	}
 	foreach (const QString& path, paths) {
--- src/main.cpp.old
+++ src/main.cpp
@@ -46,7 +46,7 @@
 	QString path = app.applicationDirPath();
 	QStringList paths;
 	paths.append(path + "/data/");
-	paths.append(path + "/../share/tanglet/data/");
+	paths.append("@GENTOO_DATADIR@/data/");
 	paths.append(path + "/../Resources/data/");
 	QDir::setSearchPaths("tanglet", paths);