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: don't propagate GDK_BACKEND to subprocs #28898
Conversation
bb623c5
to
4f53a61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add test to check if GDK_BACKEND
has actually been cleared? It is possible that Chromium decides to move the code earlier and invalidates our workaround in future.
f530859
to
cac2e3b
Compare
cac2e3b
to
2f5a448
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me, I think we just need a test to check if GDK_BACKEND
has actually been cleared.
2f5a448
to
fc649bb
Compare
@@ -122,6 +123,18 @@ bool XDGUtil(const std::vector<std::string>& argv, | |||
// bring up a new terminal if necessary. See "man mailcap". | |||
options.environment["MM_NOTTTY"] = "1"; | |||
|
|||
// If the user set a GDK_BACKEND value of their own, use that, | |||
// otherwise unset it becuase Chromium is setting GDK_BACKEND |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo (nitpick): becuase
=> because
fc649bb
to
3edf8ad
Compare
Release Notes Persisted
|
I was unable to backport this PR to "12-x-y" cleanly; |
I was unable to backport this PR to "13-x-y" cleanly; |
I have automatically backported this PR to "14-x-y", please check out #29588 |
This reverts commit 7b169c2.
Description of Change
Closes #28436.
GDK_BACKEND
is set by Chromium as of this CL and can detrimentally affect external app behaviors, so we want to unset it and replace with the user's setting if one exists.Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where
GDK_BACKEND
was being propagated to subprocesses on Linux.