LMSouq
server-admin Open

Recreating PyCharm launcher in Ubuntu

NA
Nafiul Islam
1 month ago
3 views
Problem Description
I installed pycharm normally via `bin/pycharm.sh`, but the mistake I made was doing `bash pycharm.sh` _while_ the pycharm directory has inside the Downloads folder. I later on moved the directory to `/opt/Pycharm/`. This is causing the once functioning unity launcher (which was added when PyCharm was initially installed) to fail every time I attempt to use it (as expected). How can I re-add `pycharm.sh` as a lauchable app from the unity launcher? I know the location of the `pycharm.sh` file. I've tried to add it to `/usr/bin/` but that does not change anything. I can still launch pycharm via `bash /usr/opt/Pycharm/bin/Pycharm.sh`. But this is tedious. UPDATE ------ I have tried making 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, I get a "Unable to save Pycharm.desktop" error when I try to save the file inside `/usr/share/applications/pycharm.desktop`. Any help regarding this would be deeply appreciated.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base