fix: fallback to ~/Public if xdg-user-dir is not available. close #627

This commit is contained in:
Martin Wimpress 2024-05-14 09:58:16 +01:00 committed by Martin Wimpress
parent f850dcb8db
commit f3b475ec42
1 changed files with 2 additions and 0 deletions

View File

@ -1540,6 +1540,8 @@ function fileshare_param_check() {
if [ -z "${PUBLIC}" ]; then if [ -z "${PUBLIC}" ]; then
if command -v xdg-user-dir &>/dev/null; then if command -v xdg-user-dir &>/dev/null; then
PUBLIC=$(xdg-user-dir PUBLICSHARE) PUBLIC=$(xdg-user-dir PUBLICSHARE)
elif [ -d "${HOME}/Public" ]; then
PUBLIC="${HOME}/Public"
fi fi
fi fi