Skip to content

Commit

Permalink
rviz2: Use X11 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker1024 authored and lopsided98 committed Sep 13, 2023
1 parent d31e04a commit 7b7878d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion distros/ros2-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,15 @@ rosSelf: rosSuper: with rosSelf.lib; {
});

rviz2 = rosSuper.rviz2.overrideAttrs ({
nativeBuildInputs ? [], postFixup ? "", meta ? {}, ...
nativeBuildInputs ? [], qtWrapperArgs ? [], postFixup ? "", meta ? {}, ...
}: {
dontWrapQtApps = false;
nativeBuildInputs = nativeBuildInputs ++ [ self.qt5.wrapQtAppsHook ];
qtWrapperArgs = qtWrapperArgs ++ [
# Use X11 by default in RViz2.
# https://github.com/ros-visualization/rviz/issues/1442
"--set-default QT_QPA_PLATFORM xcb"
];
postFixup = postFixup + ''
wrapQtApp "$out/lib/rviz2/rviz2"
'';
Expand Down

0 comments on commit 7b7878d

Please sign in to comment.