games-on-whales / wolf

Stream virtual desktops and games running in Docker
https://games-on-whales.github.io/wolf/stable/
MIT License
631 stars 43 forks source link

app_state_folder option not working in apps section #143

Open csrednicki opened 2 hours ago

csrednicki commented 2 hours ago

In documentation it is said that there is app_state_folder option in apps section. When I tried to use it, defining specific folder for application it wasn't working. I searched thru the current code and I couldn't find this option. How can I define state folder per application?

ABeltramo commented 2 hours ago

The documentation is outdated on that part, app_state_folder can only be defined per Moonlight client with something like:

https://github.com/games-on-whales/wolf/blob/9844022e90e5c1bae5ac464ad252f74d87f4d4d6/tests/assets/config.test.toml#L13-L15

Or you can change where Wolf will store all the app data by following this.

Would that work for you? What are you trying to achieve?

csrednicki commented 1 hour ago

What are you trying to achieve?

For example I have Steam application, I installed a bunch of games in this app. Now in moonlight I want to have each of this games as separate icons. Pretty standard. If I will create separate entries in config.toml for each of this games (and pass STEAM_STARTUP_FLAGS with proper game id) this would create folders with different Steam app installations. It would ask me for my credentials for every single game and I would have to install it again, because it will not use original Steam app but app named as game (folder created in /etc/wolf/<paired_client_id>/<app_title>).

Currently I managed to get around it by creating symlinks from game title to Steam app folder and this is working. I thought I could ditch symlinks and use this app_state_folder feature but found it isn't working. In this case app_state_folder would be pointing to Steam folder and everything would be working fine.