EnglishFrenchSpanish

OnWorks favicon

xdg-icon-resource - Online in the Cloud

Run xdg-icon-resource in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command xdg-icon-resource that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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
Installs the icon file indicated by icon-file to the desktop icon system under the
name icon-name. Icon names do not have an extension. If icon-name is not provided the
name is derived from icon-file. The icon file must have .png or .xpm as extension. If
a corresponding .icon file exists in the same location as icon-file it will be
installed as well.

uninstall
Removes the icon indicated by icon-name from the desktop icon system. Note that icon
names do not have an extension.

forceupdate
Force an update of the desktop icon system. This is only useful if the last call to
xdg-icon-resource included the --noupdate option.

OPTIONS


--noupdate
Postpone updating the desktop icon system. If multiple icons are added in sequence
this flag can be used to indicate that additional changes will follow and that it is
not necessary to update the desktop icon system right away.

--novendor
Normally, xdg-icon-resource checks to ensure that an icon file to be installed in the
apps context has a proper vendor prefix. This option can be used to disable that
check.

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
Installs or removes the icon file as part of theme. If no theme is specified the icons
will be installed as part of the default hicolor theme. Applications may install icons
under multiple themes but should at least install icons for the default hicolor theme.

--context context
Specifies the context for the icon. Icons to be used in the application menu and as
desktop icon should use apps as context which is the default context. Icons to be used
as file icons should use mimetypes as context. Other common contexts are actions,
devices, emblems, filesystems and stock.

--size size
Specifies the size of the icon. All icons must be square. Common sizes for icons in
the apps context are: 16, 22, 32, 48, 64 and 128. Common sizes for icons in the
mimetypes context are: 16, 22, 32, 48, 64 and 128

--mode mode
mode can be user or system. In user mode the file is (un)installed for the current
user only. In system mode the file is (un)installed for all users on the system.
Usually only root is allowed to install in system 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
Show command synopsis.

--manual
Show this manual page.

--version
Show the xdg-utils version information.

ENVIRONMENT VARIABLES


xdg-icon-resource honours the following environment variables:

XDG_UTILS_DEBUG_LEVEL
Setting this environment variable to a non-zero numerical value makes
xdg-icon-resource do more verbose reporting on stderr. Setting a higher value
increases the verbosity.

XDG_UTILS_INSTALL_MODE
This environment variable can be used by the user or administrator to override the
installation mode. Valid values are user and system.

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
Error in command line syntax.

2
One of the files passed on the command line did not exist.

3
A required tool could not be found.

4
The action failed.

5
No permission to read one of the files passed on the command line.

Use xdg-icon-resource online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 2
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 3
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 4
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    foundations...
    Download Dolibarr ERP - CRM
  • 5
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    tables...
    Download SQuirreL SQL Client
  • 6
    Brackets
    Brackets
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    prepr...
    Download Brackets
  • More »

Linux commands

Ad