From a798e051d6eada0c4b6a78656ad290fff569a5ca Mon Sep 17 00:00:00 2001 From: doitux Date: Fri, 7 Dec 2007 11:04:33 +0000 Subject: [PATCH] adds manpage, desktop-file and debian install patch --- docs/pokerth.1 | 15 +++++++++++++++ pokerth.desktop | 10 ++++++++++ src/gui/qt/qttools/qthelper/qthelper.cpp | 4 ++++ 3 files changed, 29 insertions(+) create mode 100644 docs/pokerth.1 create mode 100644 pokerth.desktop diff --git a/docs/pokerth.1 b/docs/pokerth.1 new file mode 100644 index 00000000..47e1111d --- /dev/null +++ b/docs/pokerth.1 @@ -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 , +for the Debian project (but may be used by others). diff --git a/pokerth.desktop b/pokerth.desktop new file mode 100644 index 00000000..d16ce702 --- /dev/null +++ b/pokerth.desktop @@ -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 diff --git a/src/gui/qt/qttools/qthelper/qthelper.cpp b/src/gui/qt/qttools/qthelper/qthelper.cpp index 679d6480..027243e2 100644 --- a/src/gui/qt/qttools/qthelper/qthelper.cpp +++ b/src/gui/qt/qttools/qthelper/qthelper.cpp @@ -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(); } +