Skip to content

Commit

Permalink
Do not depend on xdg-user-dir presence
Browse files Browse the repository at this point in the history
Try and fix #2
  • Loading branch information
olberger committed Feb 10, 2023
1 parent 37fbbf0 commit dcb9647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/modelio-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ XAUTH=/tmp/.docker.xauth.$USER.$$
# if [ -z "${DOWNLOAD_DIR}" ]; then
# DOWNLOAD_DIR="${HOME}/Downloads"
# fi;
DOCUMENTS_DIR=$(xdg-user-dir DOCUMENTS)
# xdg-user-dir may not be available on Mac OS... until better solution, use a fixed dir
DOCUMENTS_DIR=$(xdg-user-dir DOCUMENTS || true)
if [ -z "${DOCUMENTS_DIR}" ]; then
DOCUMENTS_DIR="${HOME}/Documents"
fi;
Expand Down

0 comments on commit dcb9647

Please sign in to comment.