Skip to content

Comments

fix: Handle getGPUInfo error on Linux with Electron v40+#1302

Merged
AbhiPrasad merged 2 commits intomasterfrom
electron-v40-get-gpu-info
Jan 29, 2026
Merged

fix: Handle getGPUInfo error on Linux with Electron v40+#1302
AbhiPrasad merged 2 commits intomasterfrom
electron-v40-get-gpu-info

Conversation

@AbhiPrasad
Copy link
Contributor

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 <[email protected]>
@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

github-actions bot commented Jan 27, 2026

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
  • Replace deprecated url.parse with parseStringToURLObject by AbhiPrasad in #1303

🤖 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
Contributor Author

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

@AbhiPrasad AbhiPrasad merged commit 91b34d0 into master Jan 29, 2026
207 of 212 checks passed
@AbhiPrasad AbhiPrasad deleted the electron-v40-get-gpu-info branch January 29, 2026 16:33
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

2 participants