sonic2kk / steamtinkerlaunch

Linux wrapper tool for use with the Steam client for custom launch options and 3rd party programs
GNU General Public License v3.0
2.15k stars 73 forks source link

"back to default" button #939

Open jon-bit opened 1 year ago

jon-bit commented 1 year ago

System Information

Feature Description

Set everything back to default. Have a button that sets all of the settings back to default. I am requesting this because I was scrolling past the settings and now it's messed up I think a system default button would be helpful. I know their is a default button now but that allows you to edit the default. I want something that sets the SYSTEM default back. I have not found anyway to do this so maybe this would help.

sonic2kk commented 1 year ago

I'm not sure which config you made a mistake with, but you can easily do this by manually removing the game config file, or global/URL config files, from the SteamTinkerLaunch config folder. There is also a command to open this folder, but outside of Flatpak this is at ~/.config/steamtinkerlaunch. The global.conf / urls.conf are in that folder, and game configs are in gamecfgs. The main file is stored in the ID folder, the configs in gamecfgs/title are symlinks for convenience, so be sure to remove the correct one :-) Hope this resolves your issue for now.

More specific to this request though I'm not sure where such a button would go on the menu, and I would want it to be something a user has to be very deliberate about. There may be a command to do this already, but if not, I think we could add a command for this instead of a button.

I imagine something like this: steamtinkerlaunch resetdefault <AppID / title / global / urls / all>. For safety we could even create a backup of these files before removing them, just in case a user gets it wrong (wrong AppID, for example).

jon-bit commented 1 year ago

So I did what you asked and not it is giving me an error. "[game] exited after only '0' seconds." any idea?

sonic2kk commented 1 year ago

You're going to have to provide a log, but as a guess, no Proton version was found maybe. Check settings on the game menu.

If you didn't remove a per-game config, open the global menu and press save, in case something wasn't set properly. I have no idea which config file you removed so it would be useful if you told me which part you followed :-)

But no, I can't identify issues without a log.

jon-bit commented 1 year ago

Sorry on a trip at the moment for personal problems(I had to go in 6 hrs when I found out). I will get back to you after I am home (my gaming rig is their). It was a last minute thing so I don't know for how long I will be gone but I will get back to you when I can.

sonic2kk commented 1 year ago

No problem, personal life always takes priority. Hope you are well soon and if you have other priorities feel free to close this when you get back.

In the meantime, I will test and work on implementing this feature. However, I will not close this issue as soon as it is completed.

Take time for yourself, real life should always come first :-)

Mte90 commented 7 months ago

Often I need to reset the game settings because doesn't start (stl and the game), so I removed manually the various config files. I have to get the log of a game when this is happening.

sonic2kk commented 7 months ago

Often I need to reset the game settings because doesn't start

If I recall, you're running on SteamOS. This might be because you're configuring the game in Game Mode, which no longer works in recent SteamOS versions (reported a couple of times, but the one I recall off the top of my head is #1012).

A "Back to Default" button is on the roadmap for v14.0 (#992), but there are a few concerns I have with implementing it, mainly where and how. I am currently considering putting it in the Game Files dialog, where you can tick and delete the config file. This would also be extensible to other files too, like the MangoHud, DXVK, per-game+global env vars, and of course the config file. I tried to implement this a few weeks ago and hit a lot of bumps that I can't remember now, but I will revisit it when I have some time and motivation (low on both right now).