Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www/qt6-webengine: Fix hardcoded path
Replace hardcoded path causing runtime failures by replacing with LOCALBASE. Approved by: kde (kai) Fixes: 3227b80 Differential Revision: https://reviews.freebsd.org/D38067
- Loading branch information
1 parent
9fbad51
commit 6844270
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...s/patch-src_3rdparty_chromium_ui_events_ozone_layout_xkb_xkb__keyboard__layout__engine.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- src/3rdparty/chromium/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc.orig 2022-12-12 18:53:13 UTC | ||
+++ src/3rdparty/chromium/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc | ||
@@ -638,7 +638,7 @@ void LoadKeymap(const std::string& layout_name, | ||
.options = ""}; | ||
std::unique_ptr<xkb_context, XkbContextDeleter> context; | ||
context.reset(xkb_context_new(XKB_CONTEXT_NO_DEFAULT_INCLUDES)); | ||
- xkb_context_include_path_append(context.get(), "/usr/share/X11/xkb"); | ||
+ xkb_context_include_path_append(context.get(), "%%LOCALBASE%%/share/X11/xkb"); | ||
std::unique_ptr<xkb_keymap, XkbKeymapDeleter> keymap; | ||
keymap.reset(xkb_keymap_new_from_names(context.get(), &names, | ||
XKB_KEYMAP_COMPILE_NO_FLAGS)); | ||
@@ -672,7 +672,7 @@ XkbKeyboardLayoutEngine::XkbKeyboardLayoutEngine( | ||
// TODO: add XKB_CONTEXT_NO_ENVIRONMENT_NAMES | ||
xkb_context_.reset(xkb_context_new(XKB_CONTEXT_NO_DEFAULT_INCLUDES)); | ||
xkb_context_include_path_append(xkb_context_.get(), | ||
- "/usr/share/X11/xkb"); | ||
+ "%%LOCALBASE%%/share/X11/xkb"); | ||
} | ||
|
||
XkbKeyboardLayoutEngine::~XkbKeyboardLayoutEngine() { |