Allow to select library folder
The current approach, similar to what Music and Photos use, has many problems:
- There's no default dir and it's not obvious where to put games (#158 (moved), #93 (moved))
- People expect to be able to add games on external drives, so we have
host:ro
permissions - Adding games one by one is tedious and is confusing with PSX, when there are multiple files and you need to add all of them to see the game
- Because of PSX, we cannot use portal file chooser: each file will end up in a separate dir and the game won't be playable. So
GtkFileChooserDialog
and once againhost:ro
(although there may be a portal in future: https://github.com/flatpak/xdg-desktop-portal/issues/463) - The first-run state is an empty app that just says to add games. How? What games? No explanation.
An alternative approach would be to select game directory on the first run, like elementary apps do.
This can be done with the portal file chooser, since it allows selecting directories, which would allow to drop the host:ro
permission. The PSX problem is solved since they will be in the same directory. Adding games from external drives is automatically covered because the whole library can be there.
This probably requires #243 (closed) first, because Steam and desktop platforms are completely different and this wouldn't work for them.