Skip to content

Commit 8a35f2a

Browse files
authored
Launch Webots on x11 server (#6748)
* Launch Webots on x11 server * Set the x11 server just for Ubuntu 24 version * Fix
1 parent db7b578 commit 8a35f2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/webots/launcher/webots-linux.sh

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export WEBOTS_TMPDIR=$WEBOTS_TMPDIR
7272
export WEBOTS_ORIGINAL_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
7373
export LD_LIBRARY_PATH="$webots_home/lib/webots":$LD_LIBRARY_PATH
7474

75+
# set the QT platform to use the X11 server for compatibility with Wayland
76+
export QT_QPA_PLATFORM="xcb"
77+
7578
# Fix for i3 window manager not working with Qt6
7679
if [ "$XDG_CURRENT_DESKTOP" == "i3" ]; then
7780
DPI=`xrdb -query -all | grep Xft.dpi | awk '{print $2}'`

0 commit comments

Comments
 (0)