[SOLVED] Is there a way to locate the dot home file that corresponds to a program or game?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by rknichols
A game's "high score" file would not be in any user's home directory. That information is global to all users on the system. Look elsewhere.
The user's home on most installs I see is set to world readable by default and I don't see any files in the listing on the Debian packages website which look like saved game files.
I suspect lsof looped in a terminal window, grepping the program name, while the program is running will work fine?
The method I suggest does not require beating a high score. It only requires knowing a current high score, and assuming it is stored somewhere in plain text.
For example, if a current high score is 50200, use:
I guess the suggestion someone else made that it's not stored in your home directory may be correct, then. Doing a search on /etc and /usr instead of ~ might find it...
I guess the suggestion someone else made that it's not stored in your home directory may be correct, then. Doing a search on /etc and /usr instead of ~ might find it...
Files that are updated during operation are not normally kept under /usr. /usr/share is potentially a read-only share among multiple systems, and so is not a suitable location for a game's high score file.
I can't track this down myself because the game just segfaults in my Debian 8 VM.
Files that are updated during operation are not normally kept under /usr. /usr/share is potentially a read-only share among multiple systems, and so is not a suitable location for a game's high score file.
I can't track this down myself because the game just segfaults in my Debian 8 VM.
That's probably true. I was just going by the "Default installation target is ... /usr/share/games for the data" from the manual link that !!! provided. More to my point, the grep commands posted so far have presumed that the file is hidden. I'm suggesting it might not be.
I can't track it down either 'cause all my currently available servers have no GUI. Working on that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.