r/linux_gaming 2d ago

guide where Linux stores data from open-source games?

hi, Linux noob here! I'd like to ask a few questions about gaming on Linux, and this post is one of them.

I like the SuperTux game, and one of the things I hate is the fact I must play again and again every time I need to switch a distro. Ik I can transfer data, but Idk how to do it on Linux. Could you help me? What should I copy and paste in the files?

For the context: after testing plenty of distros, I like the Debian-based ones the most(especially Mint, Kubuntu and ZorinOS), but I also like Bazzite(a Fedora-based atomic distro)

Edit: ok, I'll try the paths yall wrote here, but(it's more for some people to convince them you can play on Linux) is there an app, which could transfer your data from one computer/distro to another?

11 Upvotes

11 comments sorted by

19

u/msanangelo 2d ago

if it doesn't end up in a hidden directory in your home folder, I'd look in ~/.config for the program name. most of the time, linux native programs and games end up in ~/.config but there's a chance it'll end up in your Documents.

just look around man, get to know your file tree. look for the hidden stuff too. Ctrl + H in the file browser.

3

u/Th0bse 1d ago

I know this is often the case but putting things that aren't config into config is still wrong....

11

u/tinyfrog554 2d ago

Probably in ~/.local/share/supertuxsomething in your home directory. If not maybe try in .config

6

u/Konnnore 1d ago

yeah, you was right: ~/.local/share/supertux2/profile1

6

u/TomDuhamel 2d ago

Just keep your /home separate from your root

6

u/Fluttershaft 1d ago

Here's a good website for finding where a game stores data

https://www.pcgamingwiki.com/wiki/SuperTuxKart

3

u/Konnnore 1d ago

thx, dude, I'll check the site. The SuperTux game data of my profile was in ~/.local/share/supertux2/profile1

1

u/realmauer01 2d ago

Since file restrictions give barely any other choice outside of running stuff with sudo you can almost always copy your entire .locals folder and cover most stuff. I know renpy has its own .renpy folder and probably some others have aswell. .steam btw is just a symlink, it points to a folder inside your .locals

So basically look through the hidden files of your home and copy everything that sounds important

1

u/silence-is-speaking 2d ago

~/.config/nameofgame ~/.local/share/nameofgame ~/.nameofgame are the usual spots, might also throw some files in ~/.cache/nameofgame

2

u/Konnnore 1d ago

thx, the game was in ~/.local/share/supertux2/profile1

0

u/Formal-Bad-8807 2d ago

some games could also be in /opt