diff --git a/src/widgets/dialogs/audio/audiodialog.cpp b/src/widgets/dialogs/audio/audiodialog.cpp index 7d89d23..502462a 100644 --- a/src/widgets/dialogs/audio/audiodialog.cpp +++ b/src/widgets/dialogs/audio/audiodialog.cpp @@ -154,6 +154,12 @@ void audioDialog::refreshFileList() { } // For example in this path: '/mnt/onboard/onboard/music/' (with '/' at the end) QString path = readFile(".config/e-2-audio/path").replace("\n", ""); + + // Needed by GUI user apps + if(path.isEmpty()) { + path = "/mnt/onboard/onboard/music/"; + } + log("Path for audio files: '" + path + "'", className); QDir dir{path}; // Other file formats could be added, by building more libraries