From 7e5b10b7d39104055dd4d6dc6c35f1493847c994 Mon Sep 17 00:00:00 2001 From: Poommetee Ketson Date: Wed, 21 Feb 2018 23:31:50 +0700 Subject: [PATCH] Fix get_drive (bookmarks) in linux not working --- drivers/unix/dir_access_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/unix/dir_access_unix.cpp b/drivers/unix/dir_access_unix.cpp index 39444315164..5a4be6df4f5 100644 --- a/drivers/unix/dir_access_unix.cpp +++ b/drivers/unix/dir_access_unix.cpp @@ -244,7 +244,7 @@ static void _get_drives(List *list) { // Parse only file:// links if (strncmp(string, "file://", 7) == 0) { // Strip any unwanted edges on the strings and push_back if it's not a duplicate - String fpath = String(string + 7).strip_edges(); + String fpath = String(string + 7).strip_edges().split_spaces()[0].percent_decode(); if (!list->find(fpath)) { list->push_back(fpath); }