ubuntu下所有的快捷方式都在:/usr/share/applications
第1步
创建Pycharm.desktop文件并用gedit的打开
sudo gedit /usr/share/applications/Pycharm.desktop
第2步
粘贴下面的代码并保存
- [Desktop Entry]
- Type=Application
- Name=Pycharm
- GenericName=Pycharm3
- Comment=Pycharm3:The Python IDE
- Exec=sh /home/xiahuale/download/pycharm-2018.3.3/bin/pycharm.sh
- Icon=/home/xiahuale/download/pycharm-2018.3.3/bin/pycharm.png
- Terminal=pycharm
- 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激活码(我用的时候是好使的)
- K03CHKJCFT-eyJsaWNlbnNlSWQiOiJLMDNDSEtKQ0ZUIiwibGljZW5zZWVOYW1lIjoibnNzIDEwMDEiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3
- RyaWN0aW9uIjoiRm9yIGVkdWNhdGlvbmFsIHVzZSBvbmx5IiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAxOS0wNC0
- yNSJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAxOS0wNC0yNSJ9LHsiY29kZSI6IldTIiwicGFpZFVwVG8iOiIyMDE5LTA0LTI1In0seyJjb2RlIjoiUkQiLCJwYWlkVXBUbyI6IjIw
- MTktMDQtMjUifSx7ImNvZGUiOiJSQyIsInBhaWRVcFRvIjoiMjAxOS0wNC0yNSJ9LHsiY29kZSI6IkRDIiwicGFpZFVwVG8iOiIyMDE5LTA0LTI1In0seyJjb2RlIjoiREIiLCJwYWlk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uw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNb
- bCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybS
- 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
原文地址:https://www.cnblogs.com/zm1314/p/11615291.html
时间: 2024-11-05 20:21:14