Matlab doesn't run

I installed matlab. Added a file /usr/share/applications/matlab.desktop. But matlab does not start, the startup window appears and that’s it. At the same time, if you run from the console, then everything works. Yesterday matlab.desktop works perfectly. Please, tell me where I went wrong.

matlab.desktop:

[Desktop Entry]
Type=Application
Terminal=false
MimeType=text/x-matlab
Exec=/opt/matlab/bin/matlab
Name=MATLAB R2022b
Icon=/opt/matlab/bin/glnxa64/cef_resources/matlab_icon.png
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true

I tried using gtk-launcher but didn’t see any errors.

Where did you install it from? The matlab AUR (Arch User Repository) package already contains desktop files.

This is my matlab.desktop file. I installed matlab from their official website.

[Desktop Entry]
Type=Application
Terminal=false
MimeType=text/x-matlab
Exec=/usr/local/MATLAB/R2022b/bin/matlab -desktop
Name=MATLAB
Icon=matlab
Categories=Development;Math;Science
Comment=Scientific computing environment
StartupNotify=true

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.