Centos添加快捷方式

来源:互联网 发布:linux swap 释放 编辑:程序博客网 时间:2024/05/16 17:16

安装软件 Jetbrains-gogland 一款golang语言的IDE
安装路径/usr/local/jetbrains_goglang-171
如果不做快捷方式的话 需要每次都需要执行bin/.gogland.sh启动
现在添加快捷方式:
在/usr/share/applications目录新建一个文件比如 gogland.desktop使用vim编辑并添加如下内容并保存:

[Desktop Entry]Encoding=utf-8Name=JetBrains-GoglangComment=Goglang IDEExec=/usr/local/jetbrains_goglang-171/bin/gogland.shIcon=/usr/local/jetbrains_goglang-171/bin/gogland.pngTerminal=falseStartipNotify=trueType=ApplicationCategories=Application;Development;

改变该文件权限
chmod a+x gogland.desktop
这个时候就可以在开始菜单的编程项目中看到设置的gogland IDE的快捷方式启动图标了。

0 0
原创粉丝点击