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

Fix loading scenarios once installed #1139

Merged
merged 1 commit into from
Jul 16, 2022

Conversation

lmoureaux
Copy link
Contributor

After it is installed, Freeciv21 is supposed to find its default set of
scenarios independent from where it's started from. Use default_data_path() to
build a list of paths to search in.

Closes #1133.

Here is the list of paths on my Linux machine for freeciv21 installed in /usr/local/: "./scenarios", "data/scenarios", "/home/louis/.local/share/freeciv21/3.0/scenarios", "/usr/local/share/freeciv21/scenarios", "/home/louis/.local/share/freeciv21/scenarios", "/usr/share/plasma/freeciv21/scenarios", "/home/louis/.local/share/flatpak/exports/share/freeciv21/scenarios", "/var/lib/flatpak/exports/share/freeciv21/scenarios", "/usr/local/share/freeciv21/scenarios", "/usr/share/freeciv21/scenarios", "/var/lib/snapd/desktop/freeciv21/scenarios"

After it is installed, Freeciv21 is supposed to find its default set of
scenarios independent from where it's started from. Use default_data_path() to
build a list of paths to search in.

Closes longturn#1133.
@jwrober
Copy link
Collaborator

jwrober commented Jul 16, 2022

Works for me. I installed the .deb package created from eval_pr.sh as part of test.

@jwrober jwrober merged commit 98c41ba into longturn:master Jul 16, 2022
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.

Scenarios list not loading on Linux
2 participants