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.
Well I solved it this way:
(or wherever your local mathematica installation is located)
From there move the 32x32, 64x64 and 128x128 .png icon files into the respective
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
then reboot and it should work now.