<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Can't unmount sshfs after playing a file with vlc (locked by xdg-screensaver)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59732">59732</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>portland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Can't unmount sshfs after playing a file with vlc (locked by xdg-screensaver)
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fry.kun@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>xdg-utils
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>