如何在Fedora中添加自定義桌面圖標(biāo)

Fedora的應(yīng)用信息存放位置

Fedora的應(yīng)用信息存放在/usr/share/applications
我們可以看下系統(tǒng)自帶瀏覽器firefox的應(yīng)用描述信息
ll | grep fire
找到文件firefox.desktop,查看其中內(nèi)容如下

[Desktop Entry]
Version=1.0
Name=Firefox
GenericName=Web Browser
GenericName[ca]=Navegador web
GenericName[cs]=Webovy prohlí?e?
GenericName[es]=Navegador web
GenericName[fa]=?????? ????????
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[hu]=Webb?ngész?
GenericName[it]=Browser Web
GenericName[ja]=ウェブ?ブラウザ
GenericName[ko]=? ????
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przegl?darka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[sk]=Internetovy prehliada?
GenericName[sv]=Webbl?sare
Comment=Browse the Web
Comment[ca]=Navegueu per el web
Comment[cs]=Prohlí?ení stránek World Wide Webu
Comment[de]=Im Internet surfen
Comment[es]=Navegue por la web
Comment[fa]=????? ???? ????? ??????? ?? ???? ??????
Comment[fi]=Selaa Internetin WWW-sivuja
Comment[fr]=Navigue sur Internet
Comment[hu]=A világháló b?ngészése
Comment[it]=Esplora il web
Comment[ja]=ウェブを閲覧します
Comment[ko]=?? ?? ????
Comment[nb]=Surf p? nettet
Comment[nl]=Verken het internet
Comment[nn]=Surf p? nettet
Comment[no]=Surf p? nettet
Comment[pl]=Przegl?danie stron WWW 
Comment[pt]=Navegue na Internet
Comment[pt_BR]=Navegue na Internet
Comment[sk]=Prehliadanie internetu
Comment[sv]=Surfa p? webben
Exec=firefox %u
Icon=firefox
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;
Keywords=web;browser;internet;
Actions=new-window;new-private-window;

X-Desktop-File-Install-Version=0.22

[Desktop Action new-window]
Name=Open a New Window
Exec=firefox %u

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=firefox --private-window %u


文件的內(nèi)容很多,只關(guān)注兩個屬性即可ExecIcon
參考Eclipse的配置即可

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse
Exec=/depzhaob/eclipse/eclipse
Icon=/usr/share/app-info/icons/fedora/128x128/eclipse.png
Terminal=false
Type=Application
Categories=Application;Development;
StartupNotify=true

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Ubuntu的發(fā)音 Ubuntu,源于非洲祖魯人和科薩人的語言,發(fā)作 oo-boon-too 的音。了解發(fā)音是有意...
    螢火蟲de夢閱讀 100,584評論 9 468
  • 一、文件/文件夾管理 ls 列出當(dāng)前目錄文件(不包括隱含文件)ls -a 列出當(dāng)前目錄文件(包括隱含文件)l...
    路癡千行閱讀 2,618評論 0 5
  • 一、文件/文件夾管理 ls 列出當(dāng)前目錄文件(不包括隱含文件) ls -a 列出當(dāng)前目錄文件(包括隱含文件) ls...
    會飛的魚Coo閱讀 4,686評論 1 23
  • Ubuntu 常用命令大全 查看軟件 xxx 安裝內(nèi)容 #dpkg -L xxx 查找軟件 #apt-cache ...
    guiwuzhe閱讀 2,711評論 0 14
  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,502評論 19 139

友情鏈接更多精彩內(nèi)容