設置快捷啟動方式
在Ubuntu下褪迟,每次都要找到 pycharm.sh所在的文件夾,執(zhí)行./pycharm.sh弦赖,非常麻煩。最好能創(chuàng)建一個快捷方式浦辨。Ubuntu的快捷方式都放在/usr/share/applications蹬竖,首先在該目錄下創(chuàng)建一個Pycharm.desktop[html] view plain copy
sudo gedit /usr/share/applications/Pycharm.desktop
然后輸入以下內(nèi)容,注意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的圖標拉到左側(cè)欄鎖定就好。