[fix] AppImage: use $XDG_DOCUMENTS_DIR if available (#3865)

Fall back to `pwd` otherwise.

Fixes #3861.
pull/3867/head
Frans de Jonge 6 years ago committed by GitHub
parent a6b824ed90
commit 88dad166f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,11 @@ RETURN_VALUE=85
if [ $# -eq 0 ]; then
# no arguments
start_path=~/Documents
if [ -n "${XDG_DOCUMENTS_DIR+x}" ]; then
start_path=$XDG_DOCUMENTS_DIR
else
start_path=$(pwd)
fi
else
start_path="$*"
fi

Loading…
Cancel
Save