tkashkin / GameHub

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

Steam API or Privacy settings not detected, won't list steam games. #531

Open jarrard opened 3 years ago

jarrard commented 3 years ago

For some reason I can't get gamehub to see my steam games because it insists my steam account is set to private when it is in fact set to public. I've also tried the API key route and it ignores that and insists its all private thus can't add any games in.

Tried both normal and git versions, tried complete wipe of gamehub files...

Expected behavior

Steam api detected and games listed.

Actual behavior

Complains steam profile is private when it is not.

Steps to reproduce

unknown

Version and environment
jarrard commented 3 years ago

The root cause of this is like because I have two steam accounts and gamehub gets confused, it just seems to want to select the OPPOSITE of what steam is actually using at present.

I swapped the steam accounts around in the steam config login file whatever and that only changed the login details but gamehub still was using the secondary account for game list and api check.. Changing my other steam account to public fixed the issue but introduces another possible issue where its getting wrong account game list...

I think it would be great if gamehub gave more control over which steam account to use instead of auto detecting from a config file somewhere which it interrupts wrong if more then 1 account is in it!

tkashkin commented 3 years ago

GameHub should use the account you've signed in last in Steam client. Run GameHub with --debug --log-auth options to see if the last account is detected correctly.

I plan to implement support for multiple accounts some time in the future.

tkashkin commented 3 years ago

Do all of the accounts in the loginusers.vdf have mostrecent field set? Maybe that's the problem.

jarrard commented 3 years ago

Only the correct account has 1 set, the other is 0. I've since moved the correct account above the other and that solved it for now. However its clearly not reading the config correctly.