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

Add installer and set data dir and user save / config dir #14

Open
MestreLion opened this issue Sep 10, 2020 · 3 comments
Open

Add installer and set data dir and user save / config dir #14

MestreLion opened this issue Sep 10, 2020 · 3 comments

Comments

@MestreLion
Copy link
Owner

  • Installer:
    • bindir: roguepc main launcher should go to /usr/local/games (system) or ~/.local/bin (user)
    • datadir: rogue.pic image, rogue* binaries and other launchers: /usr/local/share/roguepc or ~/.local/share/roguepc.
  • configdir: For rogue.scr and rogue.opt, ~/.config/roguepc. Change score functions reading/writing to use a different path, or cd to config dir before launching.
@jwt27
Copy link
Contributor

jwt27 commented Aug 12, 2021

I think rogue.scr should go in /var/games/ if installed system-wide, so high scores are shared between users.

@MestreLion
Copy link
Owner Author

That's a good idea @jwt27 ! Do you know any games that use this in a compliant/standard way? What dir/file permissions do they set under /var/games?

@jwt27
Copy link
Contributor

jwt27 commented Aug 13, 2021

BSD Rogue uses this directory (package bsdgames-nonfree on Debian). The files there are owned by root:games, chmod 664, and the setgid bit on the directory is enabled. I don't know if the group name is something Debian-specific or standardised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants