Creating a Unity Launcher icon for PyCharm

9,473

Pycharm offers you to create a .desktop file on first run

When you start PyCharm for the first time, you will be offered the opportunity to set up desktop integration:

enter image description here

As you can see, you can tick: Create desktop entry (integrate in sytem menu)
This will (or would :)) create a .desktop file, jetbrains-pycharm-ce.desktop, in either /usr/share/applictions or ~/.local/share/applications, depending on if you chose For all users or not.

What if you missed the message?

If you missed the message, you can simply temporarily rename the folder:

~/.PyCharm40

...and restart PyCharm, since the absence of this folder will make PyCharm assume you run it for the first time. Then, after things are done, you can simply remove the newly created ~/.PyCharm40 folder and rename the original folder.

From then on, you can simply run Pycharm from its own launcher.

enter image description here

Note

Although the message in the window says: You can use File | Settings to configure any of these settings later, I found a lot of settings options, but not the one to create a "Desktop Entry". It looks like the method above is the only option :)

Share:
9,473

Related videos on Youtube

Joshua Fox
Author by

Joshua Fox

See joshuafox.com including links to my blog, published articles, LinkedIn, GitHub, and even StackOverflow :-)

Updated on September 18, 2022

Comments

  • Joshua Fox
    Joshua Fox over 1 year

    I can start, PyCharm from a shell script in a subdirectory of /opt. I get a gray question-mark icon (see attachment) rather than the orange/green PyCharm icon (see attachment). Note that the correct icon is in the PyCharm directory out-of-the-box.

    I can lock this gray icon to Launcher, but this icon does not work to launch PyCharm.

    How can I get a Launcher button to launch PyCharm?

    (Ubuntu 14.10)

    Icon on launcher PyCharm icon

  • Jacob Vlijm
    Jacob Vlijm about 9 years
    What is the use of posting a random .desktop file? Posts on how to create a "general" launcher already exist plenty on AU
  • TheWanderer
    TheWanderer about 9 years
    @JacobVlijm But do people ever search?
  • Jacob Vlijm
    Jacob Vlijm about 9 years
    No, that's why the "duplicates" exist, but first we need to find out a few things to see if it is.
  • Jacob Vlijm
    Jacob Vlijm about 9 years
    It turns out the .desktop file, created by PycCharm is quite different, includes the (important) line StartupWMClass=jetbrains-pycharm-ce and desktop integration includes more than just the .desktop file.
  • Jacob Vlijm
    Jacob Vlijm about 9 years
    @JoshuaFox perfect! glad it works.
  • Richard
    Richard over 8 years
    This not seems to work with version 5... This accepted answer here is better : askubuntu.com/questions/391439/…