New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quodlibet hides automounted library #2146
Comments
What does "access" mean in this case? ismount calls stat, just like "test -e". |
Hi lazka, |
ok, I assumed "/path/to/music/" is your mount point which confused me. We should stat the first file we have for each mount point before calling ismount then. |
I hope that works, if not please reopen. |
It works on my system. Thanks! |
Hello,
I'm running quodlibet 3.7 on Debian testing (Stretch right now).
My music library is a NFS mount managed by automount (autofs) so it gets mounted automatically on first access if not already, and is unmounted after a while when not in use.
The problem I have is that when first launched, quodlibet "hides" the library (I think this was the fix for bug #984) because it thinks it's not mounted. That's because the python os.path.ismount() call used by quodlibet, does not trigger an autofs mount.
I worked around that by using a little script that "test -e /path/to/music/." before launching quodlibet (that's enough to trigger the automount). But I think maybe quodlibet "jumps the gun" a little by assuming that an unmounted mountpoint means the music is not available. Maybe it should actually try to access it.
cheers!
The text was updated successfully, but these errors were encountered: