php获取客户端桌面路径,图标 – .desktop文件:如何指定图标路径

Icons and themes are looked for in a set of directories. By default,

apps should look in $HOME/.icons (for backwards compatibility), in

$XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order).

Applications may further add their own icon directories to this list,

and users may extend or change the list (in application/desktop

specific ways).In each of these directories themes are stored as

subdirectories. A theme can be spread across several base directories

by having subdirectories of the same name. This way users can extend

and override system themes.

In order to have a place for third party applications to install their

icons there should always exist a theme called “hicolor” 07001. The data

for the hicolor theme is available for download at:

07002. Implementations are

required to look in the “hicolor” theme if an icon was not found in

the current theme.

Each theme is stored as subdirectories of the base directories. The

internal name of the theme is the name of the subdirectory, although

the user-visible name as specified by the theme may be different.

Hence, theme names are case sensitive, and are limited to ASCII

characters. Theme names may also not contain comma or space.

In at least one of the theme directories there must be a file called

index.theme that describes the theme. The first index.theme found

while searching the base directories in order is used. This file

describes the general attributes of the theme.

In the theme directory are also a set of subdirectories containing

image files. Each directory contains icons designed for a certain

nominal icon size, as described by the index.theme file. The

subdirectories are allowed to be several levels deep, e.g. the

subdirectory “48×48/apps” in the theme “hicolor” would end up at

$basedir/hicolor/48×48/apps.

The image files must be one of the types: PNG, XPM, or SVG, and the

extension must be “.png”, “.xpm”, or “.svg” (lower case). The support

for SVG files is optional. Implementations that do not support SVGs

should just ignore any “.svg” files. In addition to this there may be

an additional file with extra icon-data for each file. It should have

the same basename as the image file, with the extension “.icon”. e.g.

if the icon file is called “mime_source_c.png” the corresponding file

would be named “mime_source_c.icon”.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值