小伙伴们在deepin下运行pycharm时,是不是需要通过sh文件启动?
下面告诉大家如何将pycharm图标放在桌面上:
1.在桌面打开终端,输入命令:
sudo gedit /usr/share/applications/Pycharm.desktop
(如果gedit用不了,提示:gedit找不到命令,那么先移除,在下载
sudo apt-get remove gedit
sudo apt-get install gedit )
2.进入gedit文档里,将下面内容复制进去:
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /home/sundy/pycharm-community-2018.2.4/bin/pycharm.sh
Icon=/home/sundy/pycharm-community-2018.2.4/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
此处需要修改两个地方(替换为自己的目录):
Exec=sh /home/sundy/pycharm-community-2018.2.4/bin/pycharm.sh
Icon=/home/sundy/pycharm-community-2018.2.4/bin/pycharm.png
然后在启动器上可以看见pycharm图标了,在发送到桌面上即可。
参考:https://blog.csdn.net/mengjun1/article/details/83820528