MATLAB icon not showing in Ubuntu while running!!
Show older comments
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 Comments
Sreejith Thazhathe Veetil
on 27 Aug 2025
Edited: Sreejith Thazhathe Veetil
on 2 Sep 2025
Sreejith Thazhathe Veetil
on 27 Aug 2025
Answers (2)
Juergen
on 13 Jun 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 Comments
Xiangrui Li
on 16 Jun 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
on 27 Aug 2025
Alan
on 27 Jan 2025
0 votes
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 Comments
Sreejith Thazhathe Veetil
on 27 Jan 2025
Edited: Sreejith Thazhathe Veetil
on 27 Jan 2025
Sreejith Thazhathe Veetil
on 27 Jan 2025
Alan
on 27 Jan 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
on 27 Jan 2025
Alan
on 27 Jan 2025
On average it takes about 1.5 to 2 GB for me. It goes up to 5-6 GB on heavy usage.
Categories
Find more on Introduction to Installation and Licensing 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!