XDG-ICON-RESOURCE(1) | xdg-icon-resource Manual | XDG-ICON-RESOURCE(1) |
NAME
xdg-icon-resource - command line tool for (un)installing icon resources
SYNOPSIS
xdg-icon-resource install [--noupdate] [--novendor] [--theme theme] [--context context] [--mode mode] --size size icon-file [icon-name]
xdg-icon-resource uninstall [--noupdate] [--theme theme] [--context context] [--mode mode] --size size icon-name
xdg-icon-resource forceupdate [--theme theme] [--mode mode]
xdg-icon-resource {--help | --manual | --version}
DESCRIPTION
The xdg-icon-resource program can be used to install icon resources into the desktop icon system in order to illustrate menu entries, to depict desktop icons or to graphically represent file types.
The desktop icon system identifies icons by name. Depending on the required size, the choice of icon theme and the context in which the icon is used, the desktop icon system locates an appropriate icon resource to depict an icon. Icon resources can be XPM files or PNG files.
The desktop icon system works according to the XDG Icon Theme Specification at http://www.freedesktop.org/wiki/Specifications/icon-theme-spec
COMMANDS
install
uninstall
forceupdate
OPTIONS
--noupdate
--novendor
A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated with a dash ("-"). Companies and organizations are encouraged to use a word or phrase, preferably the organizations name, for which they hold a trademark as their vendor prefix. The purpose of the vendor prefix is to prevent name conflicts.
--theme theme
--context context
--size size
--mode mode
The default is to use system mode when called by root and to use user mode when called by a non-root user.
--help
--manual
--version
ENVIRONMENT VARIABLES
xdg-icon-resource honours the following environment variables:
XDG_UTILS_DEBUG_LEVEL
XDG_UTILS_INSTALL_MODE
EXIT CODES
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
1
2
3
4
5
SEE ALSO
xdg-desktop-icon(1), xdg-desktop-menu(1), xdg-mime(1), Icon theme specification[1]
EXAMPLES
To install an icon resource to depict a launcher for the application myfoobar, the company ShinyThings Inc. can use:
xdg-icon-resource install --size 64 shinythings-myfoobar.png
To install an icon for a new application/x-foobar file type one can use:
xdg-icon-resource install --context mimetypes --size 48 ./mime-foobar-48.png application-x-foobar xdg-icon-resource install --context mimetypes --size 64 ./mime-foobar-64.png application-x-foobar
This will install two icons with the name application-x-foobar but with different sizes.
AUTHORS
Kevin Krammer
Jeremy White
COPYRIGHT
Copyright © 2006
NOTES
- 1.
- Icon theme specification
02/06/2024 | xdg-utils 1.0 |