albertz / openlierox

OpenLieroX - Liero clone / Worms realtime / 2D shooter
http://openlierox.net
Other
262 stars 59 forks source link

Dedicated server logfile location #802

Closed lxkurko closed 7 years ago

lxkurko commented 7 years ago

By default, the dedicated server script logfile is set to the directory where the scripts are located - this doesn't usually work as on Linux/Unix-like systems, the default location of the scripts cannot be written by a normal user. This may cause confusion or temptation to run OLX as root/superuser which is not recommended. But how should this be fixed?

1) Change the default path (in dedicated_config.py) to something like "~/.OpenLieroX/dedicated_control.log". This is simple but it might be annoying for someone who uses different file paths in OLX config.

2) Change the IO script to search for a writable path by using getWriteFullFileName(...). This way it gets written to a path defined in OLX config. But should this be avoided in order to keep the messageLog() function as simple and robust as possible?

lxkurko commented 7 years ago

Closing as fixed.