File::H...Desktop(3)
π NAME π
File::HomeDir::FreeDesktop β Find your home and other directories on FreeDesktop.org Unix.
Okay bestie, this is the File::H...Desktop(3) page, aka User Contributed Perl Documentation, and the module behind the curtain is File::HomeDir::FreeDesktop. Iconic. π
β¨ DESCRIPTION β¨
This module provides implementations for determining common user directories. In normal usage this module will always be used via File::HomeDir β thatβs the main character energy.
Vibe check: this module can operate only when the command xdg-user-dir is available and executable. Thatβs typically achieved by having a package named xdg-user-dirs or similar installed. No command, no slay.
You can find the latest spec at <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html> β go read it, iykyk. π
π¦ SYNOPSIS π¦
use File::HomeDir;
# Find directories for the current user
$home = File::HomeDir->my_home; # /home/mylogin
$desktop = File::HomeDir->my_desktop;
$docs = File::HomeDir->my_documents;
$music = File::HomeDir->my_music;
$pics = File::HomeDir->my_pictures;
$videos = File::HomeDir->my_videos;
$data = File::HomeDir->my_data;
$config = File::HomeDir->my_config;
# Some undocumented ones, expect they don't work - use with caution
$download = File::HomeDir->my_download;
$publicshare = File::HomeDir->my_publicshare;
$templates = File::HomeDir->my_templates;
$cache = File::HomeDir->my_cache;
The code comment literally says: some undocumented ones, expect they don't work - use with caution. π«Ά
π AUTHORS π
The legends who made this happen:
Jerome Quelin <jquellin@cpan.org<gt>Adam Kennedy <adamk@cpan.org>
π SEE ALSO π
Go peek at File::HomeDir, File::HomeDir::Win32 (legacy). The legacy one is right there in the list, periodt. π
π COPYRIGHT π
Copyright 2009 - 2011 Jerome Quelin.
Some parts copyright 2010 Adam Kennedy.
Some parts copyright 2017 - 2020 Jens Rehsack
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Source/version: perl v5.42.0 β¨ date: 2020-09-29 π β thatβs the footer tea, bestie. π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-File-HomeDir 1.006-160000.2.2 Β· 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