adds manpage, desktop-file and debian install patch

This commit is contained in:
doitux
2007-12-07 11:04:33 +00:00
parent ab202938af
commit a798e051d6
3 changed files with 29 additions and 0 deletions
+4
View File
@@ -52,6 +52,9 @@ std::string QtHelper::getDataPathStdString(const char * /*argv0*/)
} else if (QRegExp("usr/games/bin/?$").indexIn(path) != -1) {
// we are in /usr/games/bin (like gentoo linux does)
path += "/../../share/games/pokerth/data/";
} else if (QRegExp("usr/games/?$").indexIn(path) != -1) {
// we are in /usr/games (like Debian linux does)
path += "/../share/games/pokerth/";
} else if (QRegExp("bin/?$").indexIn(path) != -1) {
// we are in a bin directory. e.g. /usr/bin
path += "/../share/pokerth/data/";
@@ -61,3 +64,4 @@ std::string QtHelper::getDataPathStdString(const char * /*argv0*/)
#endif
return (QDir::cleanPath(path) + "/").toUtf8().constData();
}