Rogue, high score saving, and file access gone wrong.
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Rogue, high score saving, and file access gone wrong.
The version of Rogue from the package "bsdgames-nonfree" keeps trying to make a score file somewhere that my normal account can't write to, and so it gives me an error about failing to do so every time I die (which is often). I know that the program can make score files, because a test play as root proved that. A quick check also showed that it doesn't save them in the directory of the program (/usr/games/) or in the /root directory, so I'm out of obvious places to look.
So I'm wondering if someone knows how I could track down where it's trying to save to and then possibly chmod the file so I could write to it as a normal user.
I know this is minor necromancy but I had the same problem when trying to play this game. At
first it wouldn't save high scores or create save files, so I tried changing the permissions.
Then it would save games but wouldn't save high scores. In desperation I tried uninstalling it
and reinstalling it with one minor difference: I used sudo apt install bsdgames-nonfree instead of sudo apt-get install bsdgames-nonfree. That fixed the issue. Using Ubuntu 18.04.1.
I am not an expert, but if this helps at all then enjoy! I don't know why that worked, but it did.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.