springmvcspringmvc10-17 17:11

如何在Fedora中添加自定义桌面图标

Fedora的应用信息存放位置

Fedora的应用信息存放在/usr/share/applications
我们可以看下系统自带浏览器firefox的应用描述信息
ll | grep fire
找到文件firefox.desktop,查看其中内容如下

[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


文件的内容很多,只关注两个属性即可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

程序之家二维码

小额赞赏

000
评论