From f3b475ec42ac0c3a1e1ab281c72eca9e45b7de8a Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 14 May 2024 09:58:16 +0100 Subject: [PATCH] fix: fallback to ~/Public if xdg-user-dir is not available. close #627 --- quickemu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quickemu b/quickemu index 1cfd311..ac1ece0 100755 --- a/quickemu +++ b/quickemu @@ -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