Skip to content

Commit

Permalink
fix: fallback to ~/Public if xdg-user-dir is not available. close #627
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed May 14, 2024
1 parent 6f3922f commit 3eac5aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,8 @@ function fileshare_param_check() {
if [ -z "${PUBLIC}" ]; then
if command -v xdg-user-dir &>/dev/null; then
PUBLIC=$(xdg-user-dir PUBLICSHARE)
elif [ -d "${HOME}/Public" ]; then
PUBLIC="${HOME}/Public"
fi
fi

Expand Down

0 comments on commit 3eac5aa

Please sign in to comment.