Solution for Code Editing Issues in MATLAB App Designer on Ubuntu Environment

1. Problem DescriptionUbuntu 24.04MATLAB R2024bAfter designing the interface using App Designer, switching to code view requires multiple mouse clicks and input method switching before editing can begin. Shortcuts like CTRL+F are also unresponsive.2. Solution2.1 For version R2024bSet the environment variable; if persistence is needed, write the following content into~/.bashrc.

 export ENABLE_QWEBWINDOW=true

2.2 For R2024band earlier versions, there are two solutions (the author’s environment is R2024b, and earlier version solutions have not been tested):(1) Change the window focus mode to “click” instead of “mouse” in the settings.(2) Switch the desktop environment to XFCE.2.3 For version R2025 and laterMathWorks has fixed this issue in version 2025, but R2025a starts very slowly and is not recommended for use.3. References

MathWorks Bug Report (1797911):

https://ww2.mathworks.cn/support/bugreports/1797911

Leave a Comment