{"id":6989,"date":"2022-12-20T19:34:35","date_gmt":"2022-12-20T22:34:35","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/filehomedirfreedesktop-man3\/"},"modified":"2022-12-20T19:34:35","modified_gmt":"2022-12-20T22:34:35","slug":"filehomedirfreedesktop-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/filehomedirfreedesktop-man3\/","title":{"rendered":"File::HomeDir::FreeDesktop (man3)"},"content":{"rendered":"<h1 align=\"center\">File::HomeDir::FreeDesktop<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">File::HomeDir::FreeDesktop \u2212 Find your home and other directories on FreeDesktop.org Unix<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This module provides implementations for determining common user directories. In normal usage this module will always be used via File::HomeDir.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This module can operate only when the command &#8220;xdg\u2212user\u2212dir&#8221; is available and executable, which is typically achieved by installed a package named &#8220;xdg\u2212user\u2212dirs&#8221; or similar.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">One can find the latest spec at <https:\/\/specifications.freedesktop.org\/basedir\u2212spec\/basedir\u2212spec\u2212latest.html>.<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use File::HomeDir; <br \/> # Find directories for the current user <br \/> $home = File::HomeDir\u2212>my_home; # \/home\/mylogin <br \/> $desktop = File::HomeDir\u2212>my_desktop; <br \/> $docs = File::HomeDir\u2212>my_documents; <br \/> $music = File::HomeDir\u2212>my_music; <br \/> $pics = File::HomeDir\u2212>my_pictures; <br \/> $videos = File::HomeDir\u2212>my_videos; <br \/> $data = File::HomeDir\u2212>my_data; <br \/> $config = File::HomeDir\u2212>my_config; <br \/> # Some undocumented ones, expect they don&#8217;t work \u2212 use with caution <br \/> $download = File::HomeDir\u2212>my_download; <br \/> $publicshare = File::HomeDir\u2212>my_publicshare; <br \/> $templates = File::HomeDir\u2212>my_templates; <br \/> $cache = File::HomeDir\u2212>my_cache;<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Jerome Quelin <jquellin@cpan.org<gt><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Adam Kennedy <adamk@cpan.org><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">File::HomeDir, File::HomeDir::Win32 (legacy)<\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright 2009 \u2212 2011 Jerome Quelin.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Some parts copyright 2010 Adam Kennedy.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Some parts copyright 2017 \u2212 2020 Jens Rehsack<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This program is free software; you can redistribute it and\/or modify it under the same terms as Perl itself.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The full text of the license can be found in the <small>LICENSE<\/small> file included with this module.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  File::HomeDir::FreeDesktop \u2212 Find your home and other directories on FreeDesktop.org Unix <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3338,3007],"class_list":["post-6989","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-filehomedirfreedesktop","tag-man3"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6989"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6989\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}