MATLAB icon not showing in Ubuntu while running!!
Mostra commenti meno recenti
I have installed MATLAB 2022b on Ubuntu 24.04.01. I could install MATLAB, and the launcher using sudo apt-get install matlab-support, Shortcut works fine and shortcut has MATLAB icon. The MATLAB also works fine and fast.
However, I cannot see MATLAB icon on the dock (taskbar), while it is runnig, instead I can see a gear icon (like settings icon). This is very confusing while running multiple applications, there is also a chance of wrongly closing the application. 

Thanks in advance.
2 Commenti
Sreejith Thazhathe Veetil
il 27 Ago 2025
Modificato: Sreejith Thazhathe Veetil
il 2 Set 2025
Sreejith Thazhathe Veetil
il 27 Ago 2025
Risposte (2)
Juergen
il 13 Giu 2025
You need to edit your matlab.desktop file and make sure the following entry is set:
StartupWMClass=MATLAB R2025a
The matlab.desktop file is in
/home/username/.local/share/applications
Here's the full content of this file on my Ubuntu 24.04 system:
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Matlab
Comment=Matlab
Comment[de]=Matlab
Exec=matlab -desktop
Icon=path-to-your-icons/matlab_icon.png
Terminal=false
Type=Application
Categories=Office;
MimeType=text/x-bibtex;
Keywords=Matlab;
StartupWMClass=MATLAB R2025a
I found the hint to why this works here: https://itsfoss.com/ubuntu-app-icon-missing/
Good luck.
2 Commenti
Xiangrui Li
il 16 Giu 2025
I figured this out following the link. It is a little tricky.
You need to go to alt-F2, run lg, to find the EXACT wmClass for Matlab instances, and input that as the value for "StartupWMClass". For my case, the value is "MATLAB R2024b - academic use". Once the .desktop is saved, the extra gear icon is combined into the launch icon with dots underneath.
Thanks @Juergen
Sreejith Thazhathe Veetil
il 27 Ago 2025
Alan
il 27 Gen 2025
0 voti
Hi Sreejith,
From what I understand, you have installed MATLAB on Ubuntu using “sudo apt-get install matlab-support” and the icon is not displaying correctly on the dock.
The first step I would recommend is to ensure that necessary system updates are installed for Ubuntu.
The next step is to reinstall MATLAB using an installer as described in the following documentation: https://www.mathworks.com/help/releases/R2022b/install/ug/install-products-with-internet-connection.html
You can download the installer form here: https://www.mathworks.com/downloads/
Make sure that you select the correct release and the “Download for Linux” option.
Here is another post worth checking out, about installing MATLAB on Ubuntu: https://www.mathworks.com/matlabcentral/answers/518584-how-do-i-install-on-ubuntu
If this problem persists after all these steps, you can contact MathWorks technical support: https://www.mathworks.com/support/contact_us.html
Regards,
Alan
5 Commenti
Sreejith Thazhathe Veetil
il 27 Gen 2025
Modificato: Sreejith Thazhathe Veetil
il 27 Gen 2025
Sreejith Thazhathe Veetil
il 27 Gen 2025
Alan
il 27 Gen 2025
Check out the following post: https://www.mathworks.com/matlabcentral/answers/513449-what-unable-to-launch-the-matlabwindow-application-during-installation
It is regarding a similar error.
Sreejith Thazhathe Veetil
il 27 Gen 2025
Alan
il 27 Gen 2025
On average it takes about 1.5 to 2 GB for me. It goes up to 5-6 GB on heavy usage.
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!