设置快捷启动方式
在Ubuntu下,每次都要找到 pycharm.sh所在的文件夹,执行./pycharm.sh,非常麻烦。最好能创建一个快捷方式。Ubuntu的快捷方式都放在/usr/share/applications,首先在该目录下创建一个Pycharm.desktop[html] view plain copy
sudo gedit /usr/share/applications/Pycharm.desktop
然后输入以下内容,注意Exec和Icon需要找到正确的路径
[html] view plain copy
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec="/XXX/pycharm-community-3.4.1/bin/pycharm.sh" %F
Icon=/XXX/pycharm-community-3.4.1/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
[Desktop Entry]
Name=Atom
Comment=A hackable text editor for the 21st Century.
GenericName=Text Editor
Exec=/usr/share/atom/atom %F
Icon=atom
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;TextEditor;Development;
MimeType=text/plain;
然后再到/usr/share/applications中找到相应的启动,复制到桌面即可;或者在搜索中找到pycharm的图标拉到左侧栏锁定就好。