linux mint系统基于Ubuntu,所以快捷方式也在/usr/share/applications中
1.在/usr/share/applications目录下创建一个Pycharm.desktop文件
cd /usr/shar/applications/
sudo vim Pycharm.desktop
2.写入以下内容
[Desktop Entry]
Type = Application
Name = Pycharm
GenericName = Pycharm
Comment = Pycharm:The Python IDE
Exec = "app_dir/xxxxx.sh" %f
Icon = app_dir/xxxxx.png
Terminal = pycharm
Categories = Pycharm;
其中Exec是程序启动的路径,Icon是程序图标位置,app_dir是安装路径.
3.保存并启动程序
网友评论