From 272414c0961ce8a2914acf519252ca45ddaad15d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 12 Apr 2025 02:09:19 +0000 Subject: [PATCH] Linux: hide the "/efi" mount point in the file-browser --- source/blender/editors/space_file/fsmenu_system.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_file/fsmenu_system.cc b/source/blender/editors/space_file/fsmenu_system.cc index 0170f863149..f11cffbab70 100644 --- a/source/blender/editors/space_file/fsmenu_system.cc +++ b/source/blender/editors/space_file/fsmenu_system.cc @@ -591,7 +591,11 @@ void fsmenu_read_system(FSMenu *fsmenu, int read_bookmarks) # define STRPREFIX_DIR_DELIMIT(a, b) (strncmp_dir_delimit((a), (b), strlen(b)) == 0) while ((mnt = getmntent(fp))) { - if (STRPREFIX_DIR_DELIMIT(mnt->mnt_dir, "/boot")) { + if (STRPREFIX_DIR_DELIMIT(mnt->mnt_dir, "/boot") || + /* According to: https://wiki.archlinux.org/title/EFI_system_partition (2025), + * this is a common path to mount the EFI partition. */ + STRPREFIX_DIR_DELIMIT(mnt->mnt_dir, "/efi")) + { /* Hide share not usable to the user. */ continue; }