I installed Mathematica 9 and 10 on Ubuntu Linux 14.04 with Unity. How to set icons for them? At the moment they show up as gray squares with a question mark in it on the dock.


1 Answer 1


Well I solved it this way:

Go to:


(or wherever your local mathematica installation is located)

From there move the 32x32, 64x64 and 128x128 .png icon files into the respective

/usr/share/icons/hicolor/32x32/apps /usr/share/icons/hicolor/64x64/apps /usr/share/icons/hicolor/128x128/apps

folders, but giving them respectively the same name (such as wolfram-mathematica9.png).

Then edit the file:


change the line corresponding to Icon:


(without the png extension)

If that file is not present in /usr/share, copy it from here:


Remember: You need sudo permissions to run these commands.

To be sure, you can run

sudo updatedb

then reboot and it should work now.

  • $\begingroup$ That doesn't work for MMA 10.4.1 under Linux Mint 17.3 Cinammon. Is there a way to fix it? $\endgroup$
    – corey979
    Commented May 9, 2016 at 12:44
  • $\begingroup$ Mathematica on Ubuntu seems to have proper icon from the start. $\endgroup$
    – krokodil
    Commented May 14, 2016 at 23:50
  • $\begingroup$ I wanted to start Mma directly from the whiskermenu rather than from there through another submenu with only a single choice. Clicking on the left upper square in Xfce's launcher properties, setting command to /usr/local/Wolfram/Mathematica/10.1/Executables/Mathematica %F and the symbol to /usr/share/icons/hicolor/64x64/apps/wolfram-mathematica.png worked fine for me. Thank you for this hint. I would not have searched in /usr/share/icons/hicolor/64x64/apps - what a long path! How did you get that? $\endgroup$ Commented Oct 26, 2016 at 15:02
  • $\begingroup$ @AdalbertHanßen that's the standard directory where third-party applications put their icons. $\endgroup$ Commented Nov 15, 2016 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.