You can now simply click this icon to launch your application, instead of manually executing shell script each time :).
Following above steps will create a desktop shortcut for any such application, however running application from shortcut created using this method can add a duplicate icon in the launcher. To prevent this, we need to add one more attribute to our phpstorm.desktop file, but first, we need to get the value of this attribute. To do this,
1 | xprop WM_CLASS |
After running above command, the cursor should turn to crosshair. Now, click on the application for which you are creating the shortcut, Phpstorm in this case. In the terminal you should see something like
1 | WM_CLASS(STRING) = "jetbrains-phpstorm" , "jetbrains-phpstorm" |
Copy the value in quotes – “jetbrains-phpstorm”. In phpstorm.desktop file, add following
1 | StartupWMClass=jetbrains-phpstorm |
Restart the application, now you should not see duplicate icon in launcher.