28 Sep 2020 14:57:05 UTC
- Distribution: File-HomeDir
- Module version: 1.006
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (11)
- Testers (4038 / 0 / 2)
- KwaliteeBus factor: 1
- 41.85% Coverage
- License: perl_5
- Perl: v5.8.3
- Download (35.01KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:13 non-PAUSE users
File::HomeDir::FreeDesktop - Find your home and other directories on FreeDesktop.org Unix
This module provides implementations for determining common user directories. In normal usage this module will always be used via File::HomeDir.
This module can operate only when the command
xdg-user-diris available and executable, which is typically achieved by installed a package named
One can find the latest spec at https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html.
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;
Jerome Quelin <firstname.lastname@example.org<gt>
Adam Kennedy <email@example.com>
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.
Module Install Instructions
To install File::HomeDir, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install File::HomeDir
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|