虚拟机centos7 增加Pycharm快捷键到桌面

1、vi /usr/share/applications/pycharm.desktop
    编辑如下:
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Encoding=UTF-8
    Name=pycharm
    Comment=pycharm-community
    Exec=/home/kang/Programs/pycharm-2020.1.4/bin/pycharm.sh
    Icon=/home/kang/Programs/pycharm-2020.1.4/bin/pycharm.png
    Terminal=false
    StartupNotify=true
    Type=Application
    Categories=Application;


2、chmod a+x /usr/share/applications/pycharm.desktop


3、进入/usr/share/applications
     cd /usr/share/applications/


4、将应用程序列表找到pycharm并发送到桌面
     复制pycharm.desktop到桌面
     cp cd /usr/share/applications/pycharm.desktop /home/Desktop


PS:添加环境变量如下
    [kang@localhost ~]$ sudo vi /etc/profile
    在文件内容最后,加:
     export PATH=$PATH:/home/kang/Programs/pycharm-2020.1.4/bin

你可能感兴趣的:(随笔)