歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux下為剛安裝好的Qt Creator 創建桌面啟動圖標

Linux下為剛安裝好的Qt Creator 創建桌面啟動圖標

日期:2017/2/28 15:44:01   编辑:Linux教程

Qt Creator 安裝好了之後,是沒有桌面啟動圖標的,每次到終端裡輸入命令也麻煩。以前寫過一個給eclipse創建圖標的方法,這次我給qt弄,發現找那個logo找了好長時間。索性我再寫以下把。我的QT的安裝目錄是/usr/local/QtSDK/ 這個目錄下的。如有需要,大家把目錄換成自己的安裝目錄就行了,我的版本是4.8.1.采用離線qt的安裝包七百多M的安裝的。

方法:輸入su -,獲得root權限,然後gedit /usr/share/applications/QtCreator.desktop,在裡面輸入以下內容,之後 就可以在Fedora上面的 應用程序----編程裡找到了,選擇弄到桌面就可以了。

[Desktop Entry]
Encoding=UTF-8
Name=QtCreator
Comment=QtCreator
Exec=/usr/local/QtSDK/QtCreator/bin/qtcreator
Icon=/usr/local/QtSDK/QtCreator/share/qtcreator/templates/shared/icon64.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;

Copyright © Linux教程網 All Rights Reserved