Skip to content

Conversation

@AbhiPrasad
Copy link
Member

In Electron v40+, app.getGPUInfo() throws when hardware acceleration is disabled via app.disableHardwareAcceleration() on Linux. This wraps the call in a try-catch to gracefully handle the error by simply not adding GPU context to events.

Fixes #1301

In Electron v40+, app.getGPUInfo() throws when hardware acceleration
is disabled via app.disableHardwareAcceleration() on Linux. This wraps
the call in a try-catch to gracefully handle the error by simply not
adding GPU context to events.

Fixes #1301

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@AbhiPrasad AbhiPrasad self-assigned this Jan 27, 2026
@AbhiPrasad AbhiPrasad requested a review from timfish January 27, 2026 19:34
@github-actions
Copy link
Contributor

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes 🐛

  • Handle getGPUInfo error on Linux with Electron v40+ by AbhiPrasad in #1302

🤖 This preview updates automatically when you update the PR.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) January 27, 2026 19:38
@AbhiPrasad AbhiPrasad disabled auto-merge January 27, 2026 19:57
@AbhiPrasad
Copy link
Member Author

CI is failing - tried to fix this here: #1303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Electron v40 app.getGPUInfo() throws error on Linux

3 participants