tkashkin / GameHub

All your games in one place
https://tkashkin.github.io/projects/gamehub
GNU General Public License v3.0
2.23k stars 129 forks source link

Add Import/Export of settings and game configuration #527

Open adrianlopezgalera opened 3 years ago

adrianlopezgalera commented 3 years ago

Hi!

I don't want to overburden you, because another user has proposed many interesting features a few days ago. I haven't seen any way to export your settings for the games installed or the program itself. It would be very useful in case of reinstalling or install GameHub on another computer in order to avoid to repeat custom options for each game.

Regards.

Lucki commented 3 years ago

Moving or backing up the database should be enough. It's currently located at ${XDG_CACHE_HOME:-$HOME/.cache}/com.github.tkashkin.gamehub but will be moved with the next major version, probably to ${XDG_DATA_HOME:-$HOME/.local/share}/com.github.tkashkin.gamehub.

tkashkin commented 3 years ago

You can also export settings and access tokens:

Export: dconf dump /com/github/tkashkin/gamehub/ > gamehub_settings Import: dconf load /com/github/tkashkin/gamehub/ < gamehub_settings

adrianlopezgalera commented 3 years ago

Thank you very much to both of you! Now I know where it is and how to backup and restore it. Is there any plan to add this option to the "settings" menu? I think that newbies or non-developer people maybe need a easy way. Obviously, I understand that it's not a priority and it takes time.

I want to write an article soon about your program with the purpose of making it known among some GNU/Linux gamers of Spain (where I'm from).

By the way, I don't know if you saw another comment from me here. Just for pointing out: https://github.com/tkashkin/GameHub/issues/413#issuecomment-755117462

Thanks again!