File-XDG
view release on metacpan or search on metacpan
Looks up the configuration file by searching for ./$subdir/$filename
relative to all base directories indicated by $XDG_CONFIG_HOME and
$XDG_CONFIG_DIRS. If an environment variable is either not set or
empty, its default value as defined by the specification is used
instead. Returns a path class object.
SEE ALSO
XDG Base Directory specification, version 0.7
<http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>
CAVEATS
This module intentionally and out of necessity does not follow the spec
on the following platforms:
MSWin32 (Strawberry Perl, Visual C++ Perl, etc)
The spec requires : as the path separator, but use of this character
is essential for absolute path names in Windows, so the Windows Path
lib/File/XDG.pm view on Meta::CPAN
my $xdg = File::XDG->new( name => $name ); # back compat only
my $path = $xdg->lookup_config_file($subdir, $filename);
Looks up the configuration file by searching for C<./$subdir/$filename> relative to
all base directories indicated by C<$XDG_CONFIG_HOME> and C<$XDG_CONFIG_DIRS>. If an
environment variable is either not set or empty, its default value as defined
by the specification is used instead. Returns a path class object.
=head1 SEE ALSO
L<XDG Base Directory specification, version 0.7|http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>
=head1 CAVEATS
This module intentionally and out of necessity does not follow the spec on the following platforms:
=over 4
=item C<MSWin32> (Strawberry Perl, Visual C++ Perl, etc)
The spec requires C<:> as the path separator, but use of this character is essential for absolute path names in
( run in 0.446 second using v1.01-cache-2.11-cpan-299005ec8e3 )