fix: use gtk 3 switch as workaround #3366
No reviewers
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#3366
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/gtk-3-workaround"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The latest version of Electron will throw out an error with GNOME:
This commit applies the workaround mentioned here and here.
Pull Request Overview
This PR adds a workaround to force Electron to use GTK 3 on GNOME, preventing mixed GTK 2/3 and GTK 4 errors.
gtk-version
switch to force GTK3@ -114,6 +114,11 @@ protocol.registerSchemesAsPrivileged([
{ scheme: 'mailto', privileges: { standard: true } },
[nitpick] Guard this workaround behind a platform check (e.g.,
if (process.platform === 'linux')
) so it only applies on GNOME/Linux and avoids unintended effects on other operating systems.@ -114,6 +114,11 @@ protocol.registerSchemesAsPrivileged([
{ scheme: 'mailto', privileges: { standard: true } },