{
    "mode": "perldoc",
    "parameter": "File::HomeDir::FreeDesktop",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/File%3A%3AHomeDir%3A%3AFreeDesktop/json",
    "generated": "2026-10-08T07:33:29Z",
    "synopsis": "use File::HomeDir;\n# Find directories for the current user\n$home     = File::HomeDir->myhome;        # /home/mylogin\n$desktop  = File::HomeDir->mydesktop;\n$docs     = File::HomeDir->mydocuments;\n$music    = File::HomeDir->mymusic;\n$pics     = File::HomeDir->mypictures;\n$videos   = File::HomeDir->myvideos;\n$data     = File::HomeDir->mydata;\n$config   = File::HomeDir->myconfig;\n# Some undocumented ones, expect they don't work - use with caution\n$download    = File::HomeDir->mydownload;\n$publicshare = File::HomeDir->mypublicshare;\n$templates   = File::HomeDir->mytemplates;\n$cache       = File::HomeDir->mycache;",
    "sections": {
        "NAME": {
            "content": "File::HomeDir::FreeDesktop - Find your home and other directories on FreeDesktop.org Unix\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides implementations for determining common user directories. In normal usage\nthis module will always be used via File::HomeDir.\n\nThis module can operate only when the command \"xdg-user-dir\" is available and executable, which\nis typically achieved by installed a package named \"xdg-user-dirs\" or similar.\n\nOne can find the latest spec at\n<https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use File::HomeDir;\n\n# Find directories for the current user\n$home     = File::HomeDir->myhome;        # /home/mylogin\n$desktop  = File::HomeDir->mydesktop;\n$docs     = File::HomeDir->mydocuments;\n$music    = File::HomeDir->mymusic;\n$pics     = File::HomeDir->mypictures;\n$videos   = File::HomeDir->myvideos;\n$data     = File::HomeDir->mydata;\n$config   = File::HomeDir->myconfig;\n\n# Some undocumented ones, expect they don't work - use with caution\n$download    = File::HomeDir->mydownload;\n$publicshare = File::HomeDir->mypublicshare;\n$templates   = File::HomeDir->mytemplates;\n$cache       = File::HomeDir->mycache;\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Jerome Quelin <jquellin@cpan.org<gt>\n\nAdam Kennedy <adamk@cpan.org>\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "File::HomeDir, File::HomeDir::Win32 (legacy)\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 2009 - 2011 Jerome Quelin.\n\nSome parts copyright 2010 Adam Kennedy.\n\nSome parts copyright 2017 - 2020 Jens Rehsack\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n\nThe full text of the license can be found in the LICENSE file included with this module.\n",
            "subsections": []
        }
    },
    "summary": "File::HomeDir::FreeDesktop - Find your home and other directories on FreeDesktop.org Unix",
    "flags": [],
    "examples": [],
    "see_also": []
}