linux: Fix checkLinuxSystemInfo for Win/Mac#194
Conversation
79d165e to
8f5638a
Compare
8f5638a to
92547fd
Compare
|
OK so, since it came up on Discord, I tested what an imaginary "borked" Linux install would even be logged as (which is what the So this whole Hence I think it's safe to assume that if OBS doesn't log a edit: $ cat /etc/os-release
NAME=
VERSION="42 (KDE Plasma Desktop Edition)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=
VERSION_CODENAME=""
PLATFORM_ID="platform:f42"
PRETTY_NAME="Fedora Linux 42 (KDE Plasma Desktop Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:42"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f42/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=42
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=42
SUPPORT_END=2026-05-13
VARIANT="KDE Plasma Desktop Edition"
VARIANT_ID=kde
$ grep "Distribution" ~/.config/obs-studio/logs/2025-10-29\ 14-19-53.txt
14:19:53.310: Distribution: (null) (null)Turns out OBS is pretty resilient against weird stuff 🫠 |
|
Added another commit for the case of OBS logs this intentionally: But this felt a little long for the bot and analyzer output in general, so we're shortening it to Tested with a modified log (see PR description) Note: |
792b7ca to
45cfc9c
Compare
45cfc9c to
a713de1
Compare
RytoEX
left a comment
There was a problem hiding this comment.
Relying on a check for /etc/os-release feels unfortunate, but I don't have any better ideas at the moment, and I'd like to avoid user confusion.
That's built into OBS and unrelated to the loganalyzer itself. |
Fair enough. |
Description
Add an early return in
checkLinuxSystemInfofor Windows or Mac logs, since it's unlikely® for them to return Linux specifics.Motivation and Context
After #177 went live we've seen "No Distribution" logged for Windows and Mac, which is not ideal.
How Has This Been Tested?
Types of changes
Checklist: