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
+15
View File
@@ -0,0 +1,15 @@
.TH POKERTH 1 "December 03, 2007"
.SH NAME
pokerth \- Texas hold'em game
.SH SYNOPSIS
.B pokerth
.SH DESCRIPTION
pokerth is a free implementation of the famous "Texas hold'em" card game which
is often played in casinos. If you don't understand the rules of this game then
please have a look at http://en.wikipedia.org/wiki/Holdem where it is very well
documented.
.SH AUTHOR
pokerth was written by Felix Hammer, Florian Thauer and Lothar May.
.PP
This manual page was written by Mario Iseli <admin@marioiseli.com>,
for the Debian project (but may be used by others).
+10
View File
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=PokerTH
Type=Application
Icon=pokerth.png
Comment=Texas hold'em game
Exec=pokerth
Categories=Game;CardGame;
Terminal=false
StartupNotify=false
+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();
}