Applied Paul's patch to revert to logging to stdout and stderr instead of a file by default, and changed the .desktop file so it logs to files.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1309 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
cosmosninja 2007-12-01 04:23:38 +00:00
parent d403a951c7
commit 8d27cefdd5
3 changed files with 6 additions and 4 deletions

View File

@ -5,9 +5,9 @@ Icon=supertuxkart_64.xpm
Comment=A kart racing game
Comment[fr_FR]=Un jeu de karting
Comment[ro_RO]=Un joc de curse cu carturi
Exec=supertuxkart
Exec=supertuxkart --log=file
Terminal=false
StartupNotify=false
Type=Application
TryExec=supertuxkart
TryExec=supertuxkart --log=file
Categories=3DGraphics;Game;ActionGame;Simulation;SportsGame;

View File

@ -374,6 +374,8 @@ int main(int argc, char *argv[] )
{
std::string logoutfile = user_config->getConfigDir();
logoutfile += Loader::DIR_SEPARATOR;
std::cout << "Error messages and other text output will be logged to " ;
std::cout << logoutfile << "stderr.log and stdout.log" << std::endl;
std::string logerrfile = logoutfile;
logoutfile += "stdout.log";
logerrfile += "stderr.log";

View File

@ -131,7 +131,7 @@ void UserConfig::setDefaults()
m_width = 800;
m_height = 600;
m_karts = 4;
m_log_errors = true;
m_log_errors = false;
if(getenv("USERNAME")!=NULL) // for windows
m_username=getenv("USERNAME");