Fix snaps appearing in system bookmarks on Linux.

Differential Revision: https://developer.blender.org/D3838
This commit is contained in:
Roel Koster 2018-10-28 13:03:50 +01:00 committed by Brecht Van Lommel
parent 47953dee79
commit e3d2df0380
1 changed files with 2 additions and 0 deletions

View File

@ -605,6 +605,8 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
/* not sure if this is right, but seems to give the relevant mnts */
if (!STREQLEN(mnt->mnt_fsname, "/dev", 4))
continue;
if (STREQLEN(mnt->mnt_fsname, "/dev/loop", 9))
continue;
len = strlen(mnt->mnt_dir);
if (len && mnt->mnt_dir[len - 1] != '/') {