Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-wide install #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

system-wide install #7

wants to merge 1 commit into from

Conversation

rofl0r
Copy link

@rofl0r rofl0r commented Sep 9, 2018

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
Copy link
Author

rofl0r commented Sep 9, 2018

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

ceeac pushed a commit to ceeac/simutrans that referenced this pull request Jun 21, 2020
CHANGE: Reduce the minimum size of the ship depot window to match tha…
ceeac pushed a commit to ceeac/simutrans that referenced this pull request Sep 1, 2020
Fix crash when resizing SDL2 main window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant