自己动手制作Debian程序图标

来源:互联网 发布:windows查看本机端口 编辑:程序博客网 时间:2024/05/16 09:27
Debian系统下自己安装的一些程序发现没有程序图标,从命令行终端启动一者麻烦二者还得保存终端不关闭。打开图标文件一看,原来也简单。系统级的图标在 /usr/share/applications 目录下,用户级图标在 ~/.local/share/applications 目录下,图标文件全部为 .desktop 文件后缀。下面是系统产生的几个简单的图标文件,具体语法没去深究,照猫画虎吧。

关键是Exec、图标文件、类型、图标放置位置和是否保持命令行终端,还可以设一下程序说明文字Comment。如果觉得某个图标不顺眼可以直接删除它的图标文件或者修改图片指向。

  • JabRef
[Desktop Entry]Name=JabRefComment=Graphical editor for BibTex bibliographiesComment[de]=Grafischer Editor für BibTex-BibliographienExec=jabref %fIcon=/usr/share/pixmaps/jabref32.xpmTerminal=falseType=ApplicationCategories=Office;DatabaseMimeType=text/x-bibtex
  • EMBOSS
[Desktop Entry]Version=1.0Terminal=falseIcon=jembossExec=runJemboss.cshName=JembossGenericName=GUI for EMBOSSComment=Graphical user interface for the European Molecular Biology Open Software Suite.Type=ApplicationCategories=Biology;Science;Education;
  • R
[Desktop Entry]Version=1.0Type=ApplicationName=RComment=R software environment for statistical computing and graphicsExec=RIcon=rlogo_iconTerminal=trueStartupNotify=falseCategories=Graphics;Science;Math
  • TreeView X
[Desktop Entry]Version=1.0Terminal=falseIcon=treeviewxExec=tv %fName=TreeView XGenericName=Tree PlotterGenericName[en]=Tree PlotterGenericName[fr]=Traceur d'arbresGenericName[pt_BR]=Plotador de árvoresGenericName[it]=Plotter di AlberiComment=Displays, modifies, prints and exports in SVG format phylogenetic treesComment[en]=Displays, modifies, prints and exports in SVG format phylogenetic treesComment[fr]=Affiche, modifie, imprime et exporte au format SVG des arbres phyolgénétiquesComment[pt_BR]=Exibe, modifica e exporta em formato SVG árvores filogenéticasComment[it]=Mostra, modifica, stampa ed esporta in formato SVG alberi filogeneticiType=ApplicationCategories=Biology;Science;Education;MimeType=text/x-clustalw-tree;
0 0
原创粉丝点击