Skip to content

Commit

Permalink
Fall back to home dir, not ./
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesdaniels committed Jun 16, 2020
1 parent fd51e6e commit 8f5467d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialog/file.go
Expand Up @@ -272,7 +272,7 @@ func showFile(file *FileDialog) *fileDialog {

// if that doesn't work, fail-over to ~/
fyne.LogError("Could not load CWD", err)
dir, err = os.Getwd()
dir, err = os.UserHomeDir()
if err != nil {

// if that dosen't work, fail over to /
Expand Down

0 comments on commit 8f5467d

Please sign in to comment.