Skip to content

Commit

Permalink
library: stat one file per mountpoint before deciding if it is mounted.
Browse files Browse the repository at this point in the history
Fixes #2146

untested
  • Loading branch information
lazka committed Dec 13, 2016
1 parent db53a52 commit b5bf982
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions quodlibet/quodlibet/library/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,14 @@ def _load_init(self, items):

if mountpoint not in mounts:
is_mounted = ismount(mountpoint)

# In case mountpoint is mounted through autofs we need to
# access a sub path for it to mount
# https://github.com/quodlibet/quodlibet/issues/2146
if not is_mounted:
item.exists()
is_mounted = ismount(mountpoint)

mounts[mountpoint] = is_mounted
# at least one not mounted, make sure masked has an entry
if not is_mounted:
Expand Down

0 comments on commit b5bf982

Please sign in to comment.