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=A kart racing game
|
||||||
Comment[fr_FR]=Un jeu de karting
|
Comment[fr_FR]=Un jeu de karting
|
||||||
Comment[ro_RO]=Un joc de curse cu carturi
|
Comment[ro_RO]=Un joc de curse cu carturi
|
||||||
Exec=supertuxkart
|
Exec=supertuxkart --log=file
|
||||||
Terminal=false
|
Terminal=false
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
Type=Application
|
Type=Application
|
||||||
TryExec=supertuxkart
|
TryExec=supertuxkart --log=file
|
||||||
Categories=3DGraphics;Game;ActionGame;Simulation;SportsGame;
|
Categories=3DGraphics;Game;ActionGame;Simulation;SportsGame;
|
||||||
|
@ -374,6 +374,8 @@ int main(int argc, char *argv[] )
|
|||||||
{
|
{
|
||||||
std::string logoutfile = user_config->getConfigDir();
|
std::string logoutfile = user_config->getConfigDir();
|
||||||
logoutfile += Loader::DIR_SEPARATOR;
|
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;
|
std::string logerrfile = logoutfile;
|
||||||
logoutfile += "stdout.log";
|
logoutfile += "stdout.log";
|
||||||
logerrfile += "stderr.log";
|
logerrfile += "stderr.log";
|
||||||
|
@ -131,7 +131,7 @@ void UserConfig::setDefaults()
|
|||||||
m_width = 800;
|
m_width = 800;
|
||||||
m_height = 600;
|
m_height = 600;
|
||||||
m_karts = 4;
|
m_karts = 4;
|
||||||
m_log_errors = true;
|
m_log_errors = false;
|
||||||
|
|
||||||
if(getenv("USERNAME")!=NULL) // for windows
|
if(getenv("USERNAME")!=NULL) // for windows
|
||||||
m_username=getenv("USERNAME");
|
m_username=getenv("USERNAME");
|
||||||
|
Loading…
Reference in New Issue
Block a user