1File::HomeDir::FreeDeskUtsoepr(3C)ontributed Perl DocumeFnitlaet:i:oHnomeDir::FreeDesktop(3)
2
3
4
6 File::HomeDir::FreeDesktop - Find your home and other directories on
7 FreeDesktop.org Unix
8
10 This module provides implementations for determining common user
11 directories. In normal usage this module will always be used via
12 File::HomeDir.
13
14 This module can operate only when the command "xdg-user-dir" is
15 available and executable, which is typically achieved by installed a
16 package named "xdg-user-dirs" or similar.
17
18 One can find the latest spec at
19 <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>.
20
22 use File::HomeDir;
23
24 # Find directories for the current user
25 $home = File::HomeDir->my_home; # /home/mylogin
26 $desktop = File::HomeDir->my_desktop;
27 $docs = File::HomeDir->my_documents;
28 $music = File::HomeDir->my_music;
29 $pics = File::HomeDir->my_pictures;
30 $videos = File::HomeDir->my_videos;
31 $data = File::HomeDir->my_data;
32 $config = File::HomeDir->my_config;
33
34 # Some undocumented ones, expect they don't work - use with caution
35 $download = File::HomeDir->my_download;
36 $publicshare = File::HomeDir->my_publicshare;
37 $templates = File::HomeDir->my_templates;
38 $cache = File::HomeDir->my_cache;
39
41 Jerome Quelin <jquellin@cpan.org<gt>
42
43 Adam Kennedy <adamk@cpan.org>
44
46 File::HomeDir, File::HomeDir::Win32 (legacy)
47
49 Copyright 2009 - 2011 Jerome Quelin.
50
51 Some parts copyright 2010 Adam Kennedy.
52
53 Some parts copyright 2017 - 2020 Jens Rehsack
54
55 This program is free software; you can redistribute it and/or modify it
56 under the same terms as Perl itself.
57
58 The full text of the license can be found in the LICENSE file included
59 with this module.
60
61
62
63perl v5.38.0 2023-07-20 File::HomeDir::FreeDesktop(3)