Creating a Unity Launcher icon for PyCharm
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:
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.
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 :)
Related videos on Youtube
Joshua Fox
See joshuafox.com including links to my blog, published articles, LinkedIn, GitHub, and even StackOverflow :-)
Updated on September 18, 2022Comments
-
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/greenPyCharm
icon (see attachment). Note that the correct icon is in thePyCharm
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)
-
Jacob Vlijm about 9 yearsWhat is the use of posting a random .desktop file? Posts on how to create a "general" launcher already exist plenty on AU
-
TheWanderer about 9 years@JacobVlijm But do people ever search?
-
Jacob Vlijm about 9 yearsNo, that's why the "duplicates" exist, but first we need to find out a few things to see if it is.
-
Jacob Vlijm about 9 yearsIt turns out the
.desktop
file, created byPycCharm
is quite different, includes the (important) lineStartupWMClass=jetbrains-pycharm-ce
and desktop integration includes more than just the.desktop
file. -
Jacob Vlijm about 9 years@JoshuaFox perfect! glad it works.
-
Richard over 8 yearsThis not seems to work with version 5... This accepted answer here is better : askubuntu.com/questions/391439/…