重塑PyCharm发射器在Ubuntu [英] Recreating PyCharm launcher in Ubuntu

查看:104
本文介绍了重塑PyCharm发射器在Ubuntu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常通过斌/ pycharm.sh ,但我犯的错在做安装pycharm 庆典pycharm.sh ,而的的pycharm目录有下载文件夹中。

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.

我后来搬到了目录的/ opt / Pycharm / 。这导致了一次正常的团结启动器(当最初安装PyCharm其中加入)失败每次我尝试使用它(如预期)时间。

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).

我怎样才能重新添加 pycharm.sh 从统一启动一个应用程序lauchable?我知道 pycharm.sh 文件的位置。我试着将它添加到的/ usr / bin中/ 但是,这并不能改变什么。

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.

我仍然可以通过庆典/usr/opt/Pycharm/bin/Pycharm.sh 启动pycharm。但是,这是乏味的。

I can still launch pycharm via bash /usr/opt/Pycharm/bin/Pycharm.sh. But this is tedious.

我试图做一个新的的.desktop 立案pycharm,使用下面的脚本:

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

不过,我得到一个无法保存Pycharm.desktop错误,当我试图保存在 /usr/share/applications/pycharm.desktop 文件。任何有关这帮助将是深深AP preciated。

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.

推荐答案

首先启动 pyCharm 从它的bin文件夹通过命令行

First start pyCharm from it's bin folder via command line

$ ./pycharm.sh

然后,转到

工具 - >创建桌面项

这将创建在正确的位置正确的桌面文件。然后,你可以从菜单中启动它,脚图标或将其拖放到酒吧。这样,您就不必处理的.desktop 文件和魔神..

It will create a correct Desktop file in the correct place. Afterward you can initiate it from the menu and pin the icon or drag and drop it to the bar. This way, you don't have to deal with .desktop files and mumbo jumbo..

这篇关于重塑PyCharm发射器在Ubuntu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆