File::IconTheme(3pm)

File::IconTheme3pm

Find icon directories

Usage

 use File::IconTheme qw(xdg_icon_theme_search_dirs);
 print join "\n", xdg_icon_theme_search_dirs;

Version

version 0.09

Overview

This module can be used to find directories as specified by the Freedesktop.org Icon Theme Specification. Currently only a tiny (but most useful) part of the specification is implemented.

In case you want to store an icon theme, use the directory returned by:

 use File::BaseDir qw(data_dirs);
 print scalar data_dirs('icons');

Functions

Can be exported on request.

xdg_icon_theme_search_dirs

 my @dirs = xdg_icon_theme_search_dir;

Returns a list of the base directories of icon themes.

Configuration and environment

$XDG_DATA_HOME, $XDG_DATA_DIRS

Releases

6 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10–11
  3. 12–13
  4. Arch

Authors

•

Jaap Karssenberg || Pardus [Larus] <[email protected]>

•

Graham Ollis <[email protected]>

From perl-file-basedir 0.09-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.