Can't unmount sshfs after playing a file with vlc (locked by xdg-screensaver)
Submitted by Konstantin Svist
Assigned to Portland Bugs
Description
When I use VLC to play back a video file mounted via sshfs, I often run into the problem of unmounting the path after playback is finished (and VLC is closed)
VLC is set up to prevent screensaver from showing during playback, but the script that locks this (/usr/bin/xdg-screensaver) only checks for unlock every 50 seconds (using "sleep 50"). In this setup, some sshfs-mounted files remain open and sshfs refuses to unmount since the files are in use.
My temporary workaround is to modify xdg-screensaver to set "sleep 5" -- but this only works because I unmount by hand (5 seconds lag between closing vlc and running the command is acceptable to me). This may not work well if someone sets up a script, for example, to sshfs-mount, play a clip, and instantly unmount when playback is finished.