首页 > 系统相关 >Ubuntu下创建桌面快捷键

Ubuntu下创建桌面快捷键

时间:2023-03-15 10:48:05浏览次数:37  
标签:桌面 Qt mytest 应用程序 快捷键 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. 

标签:桌面,Qt,mytest,应用程序,快捷键,Ubuntu
From: https://www.cnblogs.com/walkies/p/17217611.html

相关文章