Comment 83 for bug 212789

Revision history for this message
Victor Yap (victor-yap) wrote :

Leveraging off oyvinst's script (comment #14)...

I worked around this bug by doing a little bit more:

# Quick and dirty hack to unmount ~/.gvfs directory on logout.
if test -d "$HOME/.gvfs" ; then
  for f in "$HOME/.gvfs"
  do
    /bin/fusermount -zu "$HOME/.gvfs/$f" 1>/dev/null 2>&1 || true
  done
  /bin/fusermount -zu "$HOME/.gvfs" 1>/dev/null 2>&1 || true
  rmdir "$HOME/.gvfs"
fi

... the script's written from gut-feeling and I didn't actually go through the steps to troubleshoot any bugs in its logic... >_> I applied this for Ubuntu 11.10 ... my quickfix intuition is that the .gvfs folder should be recreated from scratch on session login for the gvfs magic to work, even after doing the initial unmount... If someone could instead point out what command(s) are used to do the magic service's initialization, we might be able to "restart" it within a session instead of cycling through "logout -> login".