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:
parent
d403a951c7
commit
8d27cefdd5
@ -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;
|
||||
|
@ -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";
|
||||
@ -391,7 +393,7 @@ int main(int argc, char *argv[] )
|
||||
|
||||
//FIXME: this needs a better organization
|
||||
drv_init();
|
||||
|
||||
|
||||
game_manager = new GameManager ();
|
||||
// loadMaterials needs ssgLoadTextures (internally), which can
|
||||
// only be called after ssgInit (since this adds the actual loader)
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user