码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu pycharm创建快捷方式

时间:2019-10-01 16:06:02      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:-o   复制   wls   code   bag   asi   generic   pst   需要   

ubuntu下所有的快捷方式都在:/usr/share/applications

第1步

创建Pycharm.desktop文件并用gedit的打开

sudo gedit /usr/share/applications/Pycharm.desktop

 第2步

粘贴下面的代码并保存

  1. [Desktop Entry]
  2. Type=Application
  3. Name=Pycharm
  4. GenericName=Pycharm3
  5. Comment=Pycharm3:The Python IDE
  6. Exec=sh /home/xiahuale/download/pycharm-2018.3.3/bin/pycharm.sh
  7. Icon=/home/xiahuale/download/pycharm-2018.3.3/bin/pycharm.png
  8. Terminal=pycharm
  9. Categories=Pycharm

需要修改的2个参数

    Exec的路径是pycharm.sh的所在路径,即pycharm的启动文件

    Icon的路径是pycharm.png的所在路径,即pycharm的图标

第3步

在 /usr/share/applications 目录下找到Pycharm这个文件,复制到桌面

技术图片

    第4步

修改Pycharm的权限,

在终端中进入 /usr/share/applications 输入命令 

sudo chmod +777 ./Pycharm.desktop

这里777是放开全部权限(可自定义设置)

附带个 Pycharm激活码(我用的时候是好使的)

  1. K03CHKJCFT-eyJsaWNlbnNlSWQiOiJLMDNDSEtKQ0ZUIiwibGljZW5zZWVOYW1lIjoibnNzIDEwMDEiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3
  2. RyaWN0aW9uIjoiRm9yIGVkdWNhdGlvbmFsIHVzZSBvbmx5IiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAxOS0wNC0
  3. yNSJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAxOS0wNC0yNSJ9LHsiY29kZSI6IldTIiwicGFpZFVwVG8iOiIyMDE5LTA0LTI1In0seyJjb2RlIjoiUkQiLCJwY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rBA+c/F4tlK/DV07dsNExihqFoibnqDiVNTGombaU2dDup2gwKdL81ua8EIcGNExHe82kjF4zwfadHk3bQVvbfdAwxcDy4xBjs3L4raPLU3yenSzr/OEur1+jfOxnQSmEcMX
  16. KXgrAQ9U55gwjcOFKrgOxEdek/Sk1VfOjvS+nuM4eyEruFMfaZHzoQiuw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNb
  17. bCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybS
  18. D2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==

使用方法

要先修改hosts文件
将0.0.0.0 account.jetbrains.com添加到hosts文件最后,注意hosts文件无后缀,如果遇到无法修改或权限问题,可以采用覆盖的方法去替换hosts文件

在Linux系统中

hosts文件地址:

/etc/hosts

在Windows系统中

一般在下面路径中(64位和32位都一样)

C:\Windows\System32\drivers\etc

Ubuntu pycharm创建快捷方式

标签:-o   复制   wls   code   bag   asi   generic   pst   需要   

原文地址:https://www.cnblogs.com/zm1314/p/11615291.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!