simutrans icon indicating copy to clipboard operation
simutrans copied to clipboard

system-wide install

Open rofl0r opened this issue 7 years ago • 1 comments

it'd be nice if there was a way to make a systemwide install. e.g. user supplies a data-basepath /share/simutrans where he can install all the data files into

(a standard install with the same behaviour as right now would have the BASE_PATH defined as ".")

pathes.h then uses like FONT_PATH BASE_PATH "/font" FONT_PATH_X BASE_PATH "/font/"

i created a patch that does just that but there are other place that use chdir (!) previous to opening files...

$ cat /tmp/log | grep theme
15392 chdir("themes")                   = -1 ENOENT (No such file or directory)
15392 open("themes.tab", O_RDONLY)      = -1 ENOENT (No such file or directory)
15392 writev(2, [{"", 0}, {"FATAL ERROR: simmain() - No GUI themes found! Please re-install!\nAborting program execution ...\n\nFor help with this error or to file a bug report please see the Simutrans forum at\nhttp://forum.simutrans.com\n", 207}], 2) = 207

if a base path is provided, saves and screenshot would go into getenv("HOME") + "/.simutrans/..." because the home dir of a user is r/w, the data dir /share/simutrans not.

rofl0r avatar Sep 09 '18 21:09 rofl0r

(i want to create a package of simutrans for my distro sabotage linux)

rofl0r avatar Sep 09 '18 21:09 rofl0r