Recreating PyCharm launcher in Ubuntu

后端 未结 17 1082
一向
一向 2021-01-30 06:16

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 D

17条回答
  •  旧时难觅i
    2021-01-30 06:56

    When Tools -> Create Desktop Entry does not work:

    Create a new file on your desktop (using vi or a similar command) named:
    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 icon and exec properties above.

    Tested on various versions of PyCharm - like a charm ☺

提交回复
热议问题