GameHub icon indicating copy to clipboard operation
GameHub copied to clipboard

Indicator for Linux native Steam games

Open Nonononoki opened this issue 3 years ago • 1 comments

GameHub only shows the supported operating systems for GoG, but not on Steam (I only have those two account). Would be nice to see what Steam games are natively supported as well.

Nonononoki avatar Jul 23 '20 12:07 Nonononoki

It looks like this feature is implemented, but GameHub doesn't download the required metadata immediately.

I just installed GameHub and — after importing my games from Steam, GOG, etc. — I noticed that nearly all of my Steam games had not been categorized by supported operating system, so my Linux-native Steam games weren't showing up when I filtered to Linux only. In fact, only one of my Steam games did show up in the OS filters, at first. A while later, another Steam game started showing up in the OS filters, and then another. Now I'm pretty sure that this metadata was being added to games when I viewed their details in GameHub's list view. I clicked each of my installed games in the list view to load their details, and now they're all categorized by OS and the Linux-compatible ones show up in the Linux filter as expected.

I did not provide GameHub with a Steam API key. If I had, then maybe it would have worked differently. Given that I had to make my game list public in my Steam profile privacy settings, I'm guessing GameHub just looked at https://steamcommunity.com/id/<my_steam_id>/games/?tab=all to fetch my games. If I look at the source of that page myself, all of the game data is stored in a big JSON string, and in that string I see no information about each game's Linux/Windows/Mac compatibility. If GameHub does the initial library import from that page, then it wouldn't have OS information right away. It might even need to scrape each game's store page in order to get that additional metadata, and that seems like a lot of work (especially for users with hundreds of games), which might explain why GameHub is lazy about it. However, I haven't actually looked at the GameHub source code; I'm just making an educated guess based on my observations and what I know about Steam.

All of my games imported from GOG, Humble Bundle, and Itch.io appeared to be categorized by OS immediately, so maybe that information is more readily available when synchronizing with these other platforms. That would make sense, given that my GOG and Humble Bundle library imports were done by logging in while the Itch.io import was done using an API key. Only the Steam import without an API key seems to work by just downloading from one's public profile.

michaelneverwins avatar Apr 06 '21 01:04 michaelneverwins