WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 237089
Bubblewrap launcher doesn't bind font locations from XDG_DATA_DIRS
https://bugs.webkit.org/show_bug.cgi?id=237089
Summary
Bubblewrap launcher doesn't bind font locations from XDG_DATA_DIRS
apteryx
Reported
2022-02-23 08:52:49 PST
The BubbleWrap launcher of WebKitGTK doesn't expose font locations present in XDG_DATA_DIRS. This problem was originally reported by a Guix user at
https://issues.guix.gnu.org/41174
.
Attachments
Patch
(2.05 KB, patch)
2022-02-23 13:03 PST
,
apteryx
no flags
Details
Formatted Diff
Diff
Patch
(2.05 KB, patch)
2022-02-23 14:42 PST
,
apteryx
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
apteryx
Comment 1
2022-02-23 13:03:21 PST
Created
attachment 453016
[details]
Patch
Patrick Griffis
Comment 2
2022-02-23 14:03:46 PST
Looks reasonable.
Michael Catanzaro
Comment 3
2022-02-23 14:10:00 PST
Comment on
attachment 453016
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=453016&action=review
I agree, except for code style nits:
> Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:308 > + for (auto dataDir = dataDirs; dataDir != nullptr && *dataDir != nullptr; dataDir++) {
I'm surprised the style bot didn't complain about this. Always write out the * on auto* to make it more clear that it's a pointer, and never explicitly compare against nullptr: for (auto* dataDir = dataDirs; dataDir && *dataDir; dataDir++) {
Michael Catanzaro
Comment 4
2022-02-23 14:10:34 PST
Comment on
attachment 453016
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=453016&action=review
> Source/WebKit/ChangeLog:3 > + Expose all fonts locations present in XDG_DATA_DIRS
First line should match the title of the bug: Bubblewrap launcher doesn't bind font locations from XDG_DATA_DIRS
apteryx
Comment 5
2022-02-23 14:42:00 PST
Created
attachment 453031
[details]
Patch
apteryx
Comment 6
2022-02-23 14:42:53 PST
(In reply to Michael Catanzaro from
comment #3
)
> Comment on
attachment 453016
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=453016&action=review
> > I agree, except for code style nits: > > > Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:308 > > + for (auto dataDir = dataDirs; dataDir != nullptr && *dataDir != nullptr; dataDir++) { > > I'm surprised the style bot didn't complain about this. Always write out the > * on auto* to make it more clear that it's a pointer, and never explicitly > compare against nullptr: > > for (auto* dataDir = dataDirs; dataDir && *dataDir; dataDir++) {
Adjusted. Thanks for the prompt review!
apteryx
Comment 7
2022-02-23 14:43:08 PST
(In reply to Michael Catanzaro from
comment #4
)
> Comment on
attachment 453016
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=453016&action=review
> > > Source/WebKit/ChangeLog:3 > > + Expose all fonts locations present in XDG_DATA_DIRS > > First line should match the title of the bug: > > Bubblewrap launcher doesn't bind font locations from XDG_DATA_DIRS
Done.
EWS
Comment 8
2022-02-23 15:48:39 PST
Committed
r290395
(
247709@main
): <
https://commits.webkit.org/247709@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 453031
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug