Fixed: broken desktop entry (launcher) for PyCharm in Ubuntu

Answered
Sometimes a desktop entry (launcher) for PyCharm gets broken as a result of upgrading your Ubuntu Linux system, or updating PyCharm.

Solution:

1. remove all copies of the desktop entry from the system
sudo find / -name 'jetbrains-pycharm.desktop' -delete
(or skip the -delete option if you want to rm the files manually)

2a. if you lost track of where to manually open PyCharm,
sudo updatedb && locate pycharm.sh
2b. open PyCharm manually
/path/to/pycharm.sh
and use Tools > Create Desktop Entry to create a new, working desktop entry.  The "for all users" option is not necessary unless you really have multiple pycharm users on your system.

3. pin the new desktop entry to the launcher.
3
3 comments

Solution is OK, but it has been 4 years since posting this fix and this bug still occurs each time I install PyCharm on kUbuntu...

1

There is an easy way to fix this, right out of Pycharm:

PyCharm can create it's own launcher icon (but it's not created by default).

All you have to do is:

  1. Start PyCharm.
  2. From the Tools menu, select "Create Desktop Entry..."
  3. Tick the corresponding box if you want the launcher for all users.
  4. If you selected "Create entry for all users", you will be asked for your password.
  5. A green message bubble should appear informing you that it was successful.
  6. You should then be able to find PyCharm in the Unity Dash or pin it to the launcher.

Note: You may need a system restart before it appears.

(source: https://askubuntu.com/questions/391439/how-can-i-set-up-pycharm-to-launch-from-the-launcher)

2

On PyCharm 2021.2.3, no window is opened when I click on "Create Desktop Entry..."

0

Please sign in to leave a comment.