Ubuntu下创建桌面快捷键

Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic

在 /usr/share/applications 目录下,创建桌面快捷方式,新建文件 

以Qt桌面快捷键为例:

1. 在目录下新建 qtcreator.desktop文件,文件内容为:

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=QtCreator
Comment=QtCreator
Icon=/opt/Qt5.14.2/Docs/Qt-5.14.2/qtcore/images/qt.png
Exec=/opt/Qt5.14.2/Tools/QtCreator/bin/qtcreator
Terminal=false
StartupNotify=true
Categories=Application;Development;

注:一下为解释参考

[Desktop Entry]
Name=mytest //应用程序名称
GenericName=mytest //应用程序通用名称
Comment=Qt mytest //应用程序简要描述
Exec=/usr/bin/untitled //可执行文件绝对路径
Terminal=flase //是否开启一个终端执行
Type=Application //快捷方式类型为应用
Icon=/home/forlinx/imgs/rtc-icon.png //图标文件绝对路径
Encoding=UTF-8 //编码格式

 

2. 

posted @ 2023-03-15 10:30  果园2018  阅读(201)  评论(0编辑  收藏  举报