Linux Commands Examples

A great documentation place for Linux commands

xdg-user-dir



Sorry, no description

... the author of this command may not have provided any manuals


Once you know what this command is about, feel free to add a description in the input "add an example + trick and tips" below
 help other Linux-fans !




add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
desktop_dir=$(xdg-user-dir DESKTOP)
if [ "$desktop_dir" == "" ] ; then
# no xdg-user-dir found or it does not know where to find desktop
0
source
            
if type xdg-user-dir >/dev/null 2>&1; then
if [ -f "$HOME/.config/user-dirs.dirs" ]; then
alias cd2$dir="cd \$(xdg-user-dir $dir)"
done
fi
fi
}
my_aliases_xdg
0
source
            
desktop_dir=$(xdg-user-dir DESKTOP)
if [ "$desktop_dir" == "" ] ; then
# no xdg-user-dir found or it does not know where to find desktop
0
source
            
DIR="$(xdg-user-dir PICTURES)"/meh
else
# where the script itself is stored
DIR="$( cd "$( dirname "$0" )" && pwd )"/photos

How can this site be more helpful to YOU ?


give  feedback