diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/tanglet/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/tanglet/files')
-rw-r--r-- | games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch b/games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch new file mode 100644 index 000000000000..6e5b46d7c7e0 --- /dev/null +++ b/games-puzzle/tanglet/files/tanglet-1.3.1-datadir.patch @@ -0,0 +1,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); + |