.if !\nF .nr F 0 ™.. File::UserDirs - Online Linux Manual PageSection : 3pm
Updated : 2018-05-11
Source : perl v5.26.2
Note : User Contributed Perl Documentation

NAMEFile::UserDirs − find extra media and documents directories

VERSIONThis document describes File::UserDirs version 0.04.

SYNOPSIS​ use File::UserDirs qw(:all); ​ print xdg_desktop_dir; # e.g. /home/user/Desktop

DESCRIPTIONThis module can be used to find directories as informally specified by the Freedesktop.org xdg-user-dirs software. This gives a mechanism to locate extra directories for media and documents files.

INTERFACExdg_desktop_dir Returns the desktop directory. Unless changed by the user, this is the directory Desktop in the home directory. xdg_documents_dir Returns the documents directory. Unless changed by the user, this is the home directory. xdg_download_dir Returns the download directory. Unless changed by the user, this is the home directory. xdg_music_dir Returns the music directory. Unless changed by the user, this is the home directory. xdg_pictures_dir Returns the pictures directory. Unless changed by the user, this is the home directory. xdg_publicshare_dir Returns the public share directory. Unless changed by the user, this is the home directory. xdg_templates_dir Returns the templates directory. Unless changed by the user, this is the home directory. xdg_videos_dir Returns the videos directory. Unless changed by the user, this is the home directory.

EXPORTSNone by default, but any method can be exported on demand. Also the group :all is defined which exports all methods.

DIAGNOSTICS``xdg−user−dir'' failed to start: %s The executable xdg−user−dir could not be run, most likely because it was not installed. See DEPENDENCIES.

CONFIGURATION AND ENVIRONMENTThe location of the directories can be specified by the user in the file ​$XDG_CONFIG_HOME/user−dirs.dirs. It is a shell file setting a number of environment variables. To find the exact pathname from Perl, run: ​ use File::BaseDir qw(config_home); ​ print config_home('user−dirs.dirs');

Example customised user−dirs.dirs​ XDG_DESKTOP_DIR="$HOME/Workspace" ​ XDG_DOCUMENTS_DIR="$HOME/Files" ​ XDG_DOWNLOAD_DIR="$HOME/Files/Downloads" ​ XDG_MUSIC_DIR="$HOME/Files/Audio" ​ XDG_PICTURES_DIR="$HOME/Files/Images" ​ XDG_PUBLICSHARE_DIR="$HOME/public_html" ​ XDG_TEMPLATES_DIR="$HOME/Files/Document templates" ​ XDG_VIDEOS_DIR="$HOME/Files/Video"

DEPENDENCIESThis module requires the executable xdg-user-dir from the package ​xdg−user−dirs. Source code is available from <http://cgit.freedesktop.org/xdg/xdg−user−dirs/>.

SEE ALSO
0
Johanes Gumabo
Data Size   :   10,545 byte
man-File::UserDirs.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 167,558
Visitor ID   :     :  
Visitor IP   :   18.119.112.208   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|File::UserDirs.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|File::UserDirs.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|File::UserDirs.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|File::UserDirs.3pm|43|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|File::UserDirs.3pm|57|\nF|.if !\nF .nr F 0 )         (rof_unit_scale_px|41|File::UserDirs.3pm|57|F|.if !\nF .nr F 0 )         (rof_if|19|File::UserDirs.3pm|57|!\nF|.if !\nF .nr F 0 )         (rof_nr_x|149|File::UserDirs.3pm|58/59|\nF>0|.if \nF>0 ══─{─══. de IX )         (rof_unit_scale_px|41|File::UserDirs.3pm|58/59|F>0|.if \nF>0 ══─{─══. de IX )         (rof_if|19|File::UserDirs.3pm|58/59|\nF>0|.if \nF>0 ══─{─══. de IX )         (htmlprn|149|File::UserDirs.3pm|58/59|.if \nF>0 ══─{─══. de IX|.if \nF>0 ══─{─══. de IX )         (rof_escape_sequence|91|File::UserDirs.3pm|60|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (rof_nr_x|149|File::UserDirs.3pm|62/63|\nF==2|. if !\nF==2 ══─{─══. nr % 0 )         (rof_unit_scale_px|41|File::UserDirs.3pm|62/63|F==2|. if !\nF==2 ══─{─══. nr % 0 )         (rof_if|19|File::UserDirs.3pm|62/63|!\nF==2|. if !\nF==2 ══─{─══. nr % 0 )         (htmlprn|149|File::UserDirs.3pm|62/63|. if !\nF==2 ══─{─══. nr % 0|. if !\nF==2 ══─{─══. nr % 0 )         (parse_manual_page_|249|File::UserDirs.3pm|65|══─}─══|. ══─}─══ )         (htmlprn|149|File::UserDirs.3pm|65|. ══─}─══ |. ══─}─══ )         (parse_manual_page_|249|File::UserDirs.3pm|66|══─}─══|.══─}─══ )         (htmlprn|149|File::UserDirs.3pm|66|.══─}─══ |.══─}─══ )