歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu:在菜單中創建QtCreator的快捷方式

Ubuntu:在菜單中創建QtCreator的快捷方式

日期:2017/2/28 16:44:17   编辑:Linux教程

環境:Ubuntu

實現在菜單中創建QtCreator的快捷方式

進入/usr/share/applications目錄編輯一desktop文檔
sudo vim /usr/share/applications/QtCreator.desktop

1 [Desktop Entry]
2 Type=Application
3 Version=0.9.4
4 Name=QtCreator
5 Comment=Run Qt Creator #鼠標放上去時的文字提示
6 Icon=/home/yan/qtsdk-2009.03/share/pixmaps/qtcreator_logo_48.png #要顯示的圖標絕對路徑
7 Exec=/home/yan/qtsdk-2009.03/bin/qtcreator #啟動程序
8 Path=/home/yan/qtsdk-2009.03/bin
9 Terminal=false
10 Categories=GNOME;GTK;System; #應用程序在菜單項中的分類,在我的系統中在 應用程序-》系統工具下
可將菜單中的圖標托到桌面上,若將QtCreator.desktop直接創建在桌面上(/usr/share/applications無QtCreator.desktop文件)也可啟動程序,但圖標不可顯示

Copyright © Linux教程網 All Rights Reserved