I installed PHPStorm 2016.1 onto my system via cd /opt && tar -xzvvf file.tar.gz Then I ran the bin/phpstorm.sh from the command prompt and locked the resulting icon in the launcher.

Then time passed and a new version cam out. I removed the icon, downloaded the new version and repeated the pattern. However, this is the new icon:

PHPStorm Icon

What can I do to fix this?


An easier way would be:

  1. unlock icon in launcher
  2. unpack the new version to whatever location you liked
  3. sh /bin/phpstorm.sh
  4. when asked if you want to use old setting and you so desire point phpstorm to the old .phpstorm directory
  5. go to Tools menu on PhpStorm and select Create Desktop Entry... from drop down
  6. when asked if you want to over write former desktop entry accept and your done.
  7. re-lock your icon again
| improve this answer | |
  • 2
    step #5 is the real key. I didn't know about it. Thank you :) – hosseio Apr 27 '17 at 8:21
  • This menu doesn't appear with PhpStorm 2019.1. Does anyone have a workaround? – Gregoire Apr 1 '19 at 7:58
  • Perhaps you should speak a support personnel as I don't think that is normal unless something has changed! – George Udosen Apr 1 '19 at 9:10

The answer in my case was deleting the .desktop file. It was in the global location. I guess I must have launched PHPStorm as root at some point. The command was

sudo rm /usr/share/applications/jetbrains-phpstorm.desktop

Then I relaunched phpstorm, locked the icon, quit and restarted via launcher.

$ cat ~/.local/share/applications/jetbrains-phpstorm.desktop

[Desktop Entry]
Name=campaign-drive - [~/src/campaign-drive] - UserRepository.php - PhpStorm 2016.2
Exec=/opt/PhpStorm-162.1121.38/bin/../jre/jre/bin/java -Xbootclasspath/a:/opt/PhpStorm-162.1121.38/bin/../lib/boot.jar -classpath /opt/PhpStorm-162.1121.38/bin/../lib/bootstrap.jar:/opt/PhpStorm-162.1121.38/bin/../lib/extensions.jar:/opt/PhpStorm-162.1121.38/bin/../lib/util.jar:/opt/PhpStorm-162.1121.38/bin/../lib/jdom.jar:/opt/PhpStorm-162.1121.38/bin/../lib/log4j.jar:/opt/PhpStorm-162.1121.38/bin/../lib/trove4j.jar:/opt/PhpStorm-162.1121.38/bin/../lib/jna.jar:/opt/PhpStorm-162.1121.38/bin/../jre/lib/tools.jar -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=/opt/PhpStorm-162.1121.38/bin/phpstorm64.vmoptions -XX:ErrorFile=/home/zippy1981/java_error_in_PHPSTORM_%p.log -XX:HeapDumpPath=/home/zippy1981/java_error_in_PHPSTORM.hprof -Djb.restart.code=88 -Didea.paths.selector=PhpStorm2016.2 -Didea.platform.prefix=PhpStorm com.intellij.idea.Main
| improve this answer | |
  • After removed the old .desktop icon, instead of creating shortcut by hand, I run ./phpstorm.sh script and locked the icon. – gmsantos Nov 28 '16 at 20:22
$ cat ~/.local/share/applications/jetbrains-phpstorm.desktop 

then check the line for the icon

[Desktop Entry]
Exec="/home/aubrey/PhpStorm/bin/phpstorm.sh" %f
Comment=Develop with pleasure!

edit the file

 $sudo nano ~/.local/share/applications/jetbrains-phpstorm.desktop 

cd into you phpstorm installation folder then cd in /bin check the name of the icon then replace the name of the icon phpstorm.png with the name of the icon in the /bin of your phpstorm installation folder done enjoy

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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