CentOS 7 創建程序(FireFox)桌面快捷方式

如果RPM包安裝的或在系統原裝的程序,直接到/usr/share/applications/ 右擊對應的圖標,copy to....到桌面就好。英文版CentOS系統自帶的Firefox默認使用的是英文版,服務器在國外,Firefox的賬號體系由於某種原因搞成了兩套,國內使用單獨的一套,然而兩套體系的賬號彼此不通,也就是用國內的賬號不能登錄國外的反過來同樣,所以得卸載原裝的再到firefox.com.cn上去下載Linux版本的bz2包。

# cp /usr/share/applications/firefox.desktop /home/user/Desktop

# yum remove firefox

# tar jxvf Firefox-latest-x86_64.tar.bz2 /*下載firefox並解壓到firefox目錄*/

# cd /home/user/Desktop

# vim firefox.desktop /*編輯並更改Exec參數爲執行文件路徑,Icon爲具體的圖標路徑*/

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Name=Firefox
GenericName=Web Browser
Comment=Browse the Web
Exec=/path/to/firefox/firefox %u
Icon=/path/to/firefox/browser/icons/mozicon128.png
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Categories=Network;WebBrowser;
X-Desktop-File-Install-Version=0.21

程序菜單中的快捷方式都保存在/user/share/applications下面,類似地,直接複製文件到你的桌面就可以建立想windows那樣的快捷方式,注意適宜更改這個文件的權限,打開的時候可能需要點擊‘Mark as trusted’。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章