Recreating PyCharm Launcher in Ubuntu

I installed pycharm usually through bin/pycharm.sh , but the error I made was making bash pycharm.sh , while the pycharm directory is inside the Downloads folder.

Subsequently, I moved the directory to /opt/Pycharm/ . This causes the once functioning single launcher (which was added when PyCharm was originally installed) to fail every time I try to use it (as expected).

How can I add pycharm.sh as a downloadable application from unity launcher? I know the location of the pycharm.sh file. I tried adding it to /usr/bin/ , but that doesn’t change anything.

I can still start pycharm through bash /usr/opt/Pycharm/bin/Pycharm.sh . But it is tiring.

UPDATE

I tried to create a new .desktop file for pycharm using the following script:

 [Desktop Entry] Encoding=UTF-8 Name=PyCharm Exec=/opt/Pycharm-3.0.1/bin/pycharm.sh Icon=/opt/Pycharm-3.0.1/bin/PyCharm_32.png Type=Application Categories=Development; StartupWMClass=PyCharm 

However, when I try to save the file inside /usr/share/applications/pycharm.desktop I get the error message "Failed to save Pycharm.desktop." Any help in this regard would be greatly appreciated.

+52
bash ubuntu pycharm
Nov 02 '13 at 4:35
source share
13 answers

First run pyCharm from the bin folder via the command line

$ ./pycharm.sh

Then goto

Tools -> Create Desktop Entry .

It will create the correct desktop file in the right place. You can later initiate it from the menu and pin the icon or drag it to the panel. This way you do not need to deal with .desktop files and mumbo jumbo ..

+143
Nov 22 '13 at
source share

I managed to solve it. The fact is that Pycharm already installs a launcher inside .local/share/applications . Thus, you need to get rid of it before you start creating your own. After that, all you have to do is add your own *.desktop file to the applications directory inside usr/share/applications/ .

You need to create a .desktop file using sudo and inside the desktop file:

 [Desktop Entry] Encoding=UTF-8 Name=PyCharm Exec=/opt/pycharm-3.0.1/bin/pycharm.sh Icon=/opt/pycharm-3.0.1/bin/pyCharm.png # Changed from pycharm_32.png Type=Application Categories=Development; StartupWMClass=PyCharm 

After that, you can start your application properly. Note that pycharm.sh must also have execute rights.

+11
Nov 02 '13 at 6:35
source share

If you just want to update your launcher by pointing to the updated PyCharm, for me, changing 4.0.4 to 4.0.6 in the following worked:

 nano /usr/share/applications/jetbrains-pycharm.desktop 
+3
Apr 21 '15 at 15:26
source share
 sudo vim `which charm` 

Now edit the RUN_PATH .

0
Nov 02 '13 at 4:57
source share

I recently resolved a related issue where, after upgrading from v2.7 to v3.0.2, my PyCharm launcher still pointed to the old (and now deleted) PyCharm path.
After trying all the (good) tips above, the problem still persisted.
The solution, in my case, was to create a desktop entry for ALL USERS.
[Welcome screen] β†’ Configure-> Create an entry in the desktop ...
Check the box: β€œCreate an entry for all users,” and then continue.

Apparently, in a previous installation, I had to install it this way and was unable to update the launcher for one account.

0
Jan 31 '14 at 16:59
source share

When Tools -> Create Desktop Entry does not work:

Create a new file on your desktop (using a touch or similar command):
jetbrains-pycharm.desktop

Paste the following inside:

 #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Name=PyCharm Icon=/opt/pycharm-5.0.1/bin/pycharm.png Exec="/opt/pycharm-5.0.1/bin/pycharm.sh" %f Comment=Develop with pleasure! Categories=Development;IDE; Terminal=false StartupWMClass=jetbrains-pycharm 

Keep in mind to change the path and version number of the icon and exec properties.

Tested in various versions of PyCharm - like a charm ☺

0
Nov 16 '15 at 12:58
source share

Now pycharm has been updated to version 2016.1, and I find the jetbrains-pycharm.desktop in the ~/.local/share/applications path

then just edit the path for Icon and Exec

0
Mar 25 '16 at 6:10
source share

In PyCharm version 2016, simply follow these steps:

  • Launch PyCharm.
  • From the Tools menu, select Create Desktop ...
  • Create an entry for "all users" if necessary.
  • Restart PyCharm from Launcher.
0
May 12 '16 at 17:01
source share

Ubuntu 16.04 (did not check previous versions)

Run pycharm.sh (make sure you are using the correct version of dir and PyCharm below):

 $ ./dir_where_you_placed_it/pycharm-2016.1.4/bin/pycharm.sh 

While PyCharm is working, right-click its icon in Launcher and select "lock to Launcher" .

0
Aug 11 '16 at 13:37
source share

Just enter this in the terminal window:

 jetbrains-pycharm.desktop 

Hope that helps :)

0
Apr 13 '17 at 9:50
source share

I just wanted to add, I just installed PyCharm Edu for Ubuntu 16.04 LTS today, and the way to create a desktop entry is very simple. When PyCharm Edu opens, before entering any project, click on the settings and it should be possible to create a desktop. Select it and it will create the PyCharm Edu.desktop file in the following directory:

 /usr/local/share/applications 

Now browse to this destination and click on the new PyCharm Edu.desktop file to launch PyCharm Edu. After that, you just need to block the launcher. It should work.

I know that I am very late, but I hope that I helped those of us in Ubuntu 16.04 LTS who are trying to configure desktop recording for this particular application.

0
Jul 05 '17 at 0:12
source share

Run $ pycharm-community Immediately after you see the icon on the taskbar . Right click, select Lock on the Taskbar . Partially solves the problem.

0
Dec 22 '17 at 3:46 on
source share

I think you did not check "Create an entry for all users (superuser privilege required)" in the menu "Tools" β†’ "Create Desktop". You have to check it out.

You do not need to create something new.

0
Dec 23 '17 at 16:23
source share



All Articles