Skip to content

Commit f3dc095

Browse files
authored
Fix high DPI scaling for MATE desktop on Linux (cyberbotics#6261)
* Update webots-linux.sh * Update changelog-r2023.md
1 parent 84751ff commit f3dc095

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/reference/changelog-r2023.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Released on June 27th, 2023.
4141
- Deprecated the C and MATLAB API functions `wb_supervisor_node_enable/disable_contact_point_tracking` in favor of `wb_supervisor_node_enable/disable_contact_points_tracking` to be more consistent with other APIs ([#5633](https://github.com/cyberbotics/webots/pull/5633)).
4242
- Remove SUMO dependency from Webots package ([#6245](https://github.com/cyberbotics/webots/pull/6245)).
4343
- Bug Fixes
44+
- Linux: fixed high DPI scaling for MATE desktop ([#6261](https://github.com/cyberbotics/webots/pull/6261)).
4445
- Windows: fixed conflict with Qt5 installation by removing the `QT_QPA_PLATFORM_PLUGIN_PATH` environment variable from the Webots launcher ([#6258](https://github.com/cyberbotics/webots/pull/6258)).
4546
- Fixed random crashes while creating [Skin](skin.md) and [Mesh](mesh.md) nodes ([#6218](https://github.com/cyberbotics/webots/pull/6218)).
4647
- Windows: fixed compilation of controller programs located in paths with non-ASCII characters ([#6235](https://github.com/cyberbotics/webots/pull/6235)).

src/webots/launcher/webots-linux.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ if [ "$XDG_CURRENT_DESKTOP" == "i3" ]; then
7979
export QT_SCALE_FACTOR=2
8080
export QT_FONT_DPI=80
8181
fi
82+
# Fix for MATE desktop
83+
elif [ "$XDG_CURRENT_DESKTOP" == "MATE" ]; then
84+
export QT_ENABLE_HIGHDPI_SCALING=0
8285
else
8386
export QT_ENABLE_HIGHDPI_SCALING=1
8487
fi

0 commit comments

Comments
 (0)