Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Several System Information improvements #3070

Merged
merged 4 commits into from
Sep 26, 2023
Merged

Conversation

CommandMC
Copy link
Collaborator

After the release of 2.9.2, some issues with the new system information module were found (some major, some minor). This should iron those out


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

On Flatpak, `/run/host/os-release` will exist & contain the host OS'
information. I intended to report this information, but missed a
`break` in the loop (so it'd always find `/etc/os-release`
afterwards and read that out instead)
@CommandMC CommandMC added the pr:ready-for-review Feature-complete, ready for the grind! :P label Sep 23, 2023
@CommandMC CommandMC self-assigned this Sep 23, 2023
This avoids issues with very old NVIDIA GPUs.
The GPU in question was a Quadro 2000, with an ID of "0dd8". Heroic
searched for just "dd8", which is not in the PCI IDs list
- Certain non-english characters aren't considered "Word characters" in
  Regex, so \S (any non-whitespace) is now accepted
- The `free` command is ran with `LANG=C` to force English output even
  on non-english systems
- If the match fails for any other reason, we simply return 0 bytes
  total/used (which is at least a valid number, even if it doesn't make
  sense)
When initializing Heroic's general / the game's log, we don't *have to*
get system information for anything else to work; we can just report
that there was an error & carry on
Copy link
Member

@imLinguin imLinguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@flavioislima flavioislima merged commit d25825f into main Sep 26, 2023
13 checks passed
@flavioislima flavioislima deleted the fix/sysinfo branch September 26, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants