Matlab 2023b creates desktop launchers with unknown purpose on Ubuntu
Show older comments
Ubuntu 23.10 and MATLAB is installed in the default location /usr/local/MATLAB.

You can see mw-matlab.desktop, mw-matlabconnector.desktop, mw-simulink.desktop and the content of mw-matlab.desktop.
It seems they are for some remote launch feature because I cannot launch MATLAB using this desktop files but they are present in the application menu.

I even tried executing the OpenMathWroksDesktopApp as shown in the desktop file directly but it doesn't show any error or messages.
What are these desktop files usage? Also, if you can create desktop files, why not create the correct launchers?
Accepted Answer
More Answers (2)
Hassaan
on 21 Jan 2024
you could create a new .desktop file with the correct command to launch MATLAB.
[Desktop Entry]
Type=Application
Name=MATLAB
Icon=/usr/local/MATLAB/R2023a/toolbox/shared/dastudio/resources/MATLAB_icon.png
Exec=/usr/local/MATLAB/R2023a/bin/matlab -desktop
Comment=Start MATLAB - The Language of Technical Computing
Categories=Development;Math;Science
Replace R2023a with the version of MATLAB you have installed. The Icon path might also need to be adjusted if it's different on your system. Once you've created this file, name it matlab.desktop and place it in ~/.local/share/applications/ (or the equivalent directory for desktop applications on your system).
You would need to give this file execute permission using the command chmod +x matlab.desktop and then you might see MATLAB in your applications menu after refreshing the desktop environment or logging out and back in.
Keep in mind that creating and modifying .desktop files requires administrative permissions if placed in system-wide directories and should be done carefully to avoid misconfiguration.
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Feel free to contact me.
2 Comments
Chenye Zhou
on 22 Jan 2024
Markus Iturriaga
on 5 Jun 2024
These launchers are also causing unnecessary and unusable application menu entries on Red Hat Enterprise Linux.
Aravind
on 17 Jun 2024
0 votes
I would like to know how to stop MATLAB creating such invalid desktop files. I have created my desktop file using matlab-support.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!