Skip to content

Commit

Permalink
add setting ubuntu16.04 pycharm icon on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
643435675 committed Dec 13, 2017
1 parent 7792ea6 commit 6110311
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions _posts/2017-12-13-Ubuntu16.04-pycharm-icon-setting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
layout: post
title: "这是徐代龙进行的第二篇文章"
categories: SnakeSon
tags: hexo JavaScript
author: SnakeSon
---

* content
{:toc}

## Ubuntu下所有的快捷方式都在:
```js
/usr/share/applications
```

## 解压

这里我将pycharm下载并解压到了/home/snakeson/developer文件夹下

这里的pycharm.sh是批处理执行文件,prcharm.png是快捷方式图标

## 终端打开

使用Ubuntu终端进行打开:
方法一(使用vim):
```js
sudo vi /usr/share/applications/pycharm.desktop
```

方法二(使用gedit):

```js
sudo gedit /usr/share/applications/pycharm.desktop
```





然后就会弹出一个新框:
## 张贴
我们将下面的内容贴上去:
```js

[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec="/home/snakeson/developer/pycharm-community-2017.2.3/bin/pycharm.sh" %f
Icon=/home/snakeson/developer/pycharm-community-2017.2.3/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;

```
---
注意一定要将Desktop Entry复制进去,也就是上面的全部都要复制进去,这里我们需要替换掉两个地方:**Exec="xx"****Icon=**,这里要替换掉我们的pycharm解压的目录,当然了,我已经替换好了,如果你的目录跟我的目录不一样的话,你得把路径给换了,不管你是pycharm2017还是pycharm2016,,例如Comment什么的都不要改变,只变上面提到的两个路径就可以了。


## 添加可执行权限
```js
sudo chmod +x /usr/share/applications/pycharm.desktop
```

## 拷贝到桌面
```js
/usr/share/applications/pycharm.desktop文件拷贝到桌面,双击即可运行。
```

0 comments on commit 6110311

Please sign in to comment.