mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 21:21:50 +03:00
Ladybird: Add qtwayland to QT_PLUGIN_PATH in nix-shell script
Otherwise Qt would not find the wayland plugin it is instructed to use via QT_QPA_PLATFORM, and would fall back to the second option, xcb, which looks rather sad in a modern Wayland environment :^) This feels like something that should be addressed upstream in nixpkgs eventually.
This commit is contained in:
parent
5468e363fa
commit
533f2a4980
Notes:
sideshowbarker
2024-07-17 20:58:35 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/533f2a4980 Pull-request: https://github.com/SerenityOS/serenity/pull/17523 Reviewed-by: https://github.com/gmta
@ -19,6 +19,9 @@ pkgs.mkShell.override
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
# NOTE: This is required to make it find the wayland platform plugin installed
|
||||
# above, but should probably be fixed upstream.
|
||||
export QT_PLUGIN_PATH="$QT_PLUGIN_PATH:${pkgs.qt6.qtwayland}/lib/qt-6/plugins"
|
||||
export QT_QPA_PLATFORM="wayland;xcb"
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user