# From: Brian Thomason <brian.thomason@canonical.com>
# Subject: change settings path from cwd to ~

--- tuxcards-2.2.1.orig/src/CTuxCardsConfiguration.cpp
+++ tuxcards-2.2.1/src/CTuxCardsConfiguration.cpp
@@ -49,7 +49,7 @@ void CTuxCardsConfiguration::readConfigu
 {
    // set default options just to be sure; if the config-file
    // might not be there or version 0.4 was used before
-   QSettings settings( TUX_CONFIG_FILE, QSettings::IniFormat );
+   QSettings settings( QDir::homePath() + QString("/")  + QString(TUX_CONFIG_FILE), QSettings::IniFormat );
 
    // Do not use a group "General" because in newer Qt-Versions this would be treated as
    // group "%General". All set keys without a group are automatically put into "General".
@@ -143,7 +143,7 @@ void CTuxCardsConfiguration::saveToFile(
 {
    // -- write to config-file ".tuxcards" ---------------------------
    // "Version" is the version of this program (not the version of a datafile)
-   QSettings settings( TUX_CONFIG_FILE, QSettings::IniFormat );
+   QSettings settings( QDir::homePath() + QString("/")  + QString(TUX_CONFIG_FILE), QSettings::IniFormat );
 
    // Do not use a group "General" because in newer Qt-Versions this would be treated as
    // group "%General". All set keys without a group are automatically put into "General".
