File::IconTheme(3)
π File::IconTheme π
ok so bestie, welcome to File::IconTheme β a lil Perl module from the User Contributed Perl Documentation section of the man pages (yeah, section 3, we're in library-land β¨). She's small, she's focused, and she finds icon directories for you. That's the whole vibe. π
β¨ NAME β¨
File::IconTheme β Find icon directories π¦
πΈ VERSION πΈ
version 0.09 π
π§ SYNOPSIS π§
like, here's the entire flex:
use File::IconTheme qw(xdg_icon_theme_search_dirs);
print join "\n", xdg_icon_theme_search_dirs;
that's it. that's the whole thing. iconic. π
π DESCRIPTION π
okay so, this module is your girl for finding directories as specified by the Freedesktop.org Icon Theme Specification. π«Ά
real talk though: currently only a tiny (but most useful) part of the specification is implemented. tiny but mighty, yk? π
and if you're the one who wants to store an icon theme instead of just finding one, you want the directory that this returns:
use File::BaseDir qw(data_dirs);
print scalar data_dirs('icons');
different module, different job, but they're besties fr fr π
π₯ FUNCTIONS π₯
quick heads up: these 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. that's it, that's the whole function, and it ate. π
π CONFIGURATION AND ENVIRONMENT π
she reads these env vars, no cap:
$XDG_DATA_HOMEπ$XDG_DATA_DIRSβ¨
π¦ SEE ALSO π¦
- <http://standards.freedesktop.org/icon-theme-spec/> β the spec herself, go read it, iykyk π
π AUTHORS π
- Jaap Karssenberg || Pardus [Larus]
<pardus@cpan.org>π - Graham Ollis
<plicease@cpan.org>π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2003-2021 by Jaap Karssenberg || Pardus [Larus] <pardus@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π«Ά (yes bestie, free software, go wild, just keep the same terms π)
π and that's the whole page!! this beauty shipped asperl v5.42.0on2021-07-09, and honestly? she's still serving. mwah, go find those icon dirs. π β¨πΈ
π¦ where this page comes from
- opensuse-leap 16.0: perl-File-BaseDir 0.09-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms