Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Thunar is returning an error when I try to open my home directory:

Failed to open directory "matt". Error stating file '/home/matt/.gvfs': Transport endpoint is not connected.

Is there any way I can fix this without restarting? This error seems to be triggered upon logging out and logging back in when when multiple users are logged in.

share|improve this question
up vote 8 down vote accepted

There is a bug report here:

You can try unmounting the directory or a reboot.

sudo umount ~matt/.gvfs
share|improve this answer
I also get run into this bug a couple of times a year. The umount didn't work for me; all that happens is that on restarting Thunar, the error is gone, but my home directory looks empty. Added on edit: I opened a new Thunar window, going directly to a subdirectory of my home directory, which was visible. Then up to the home directory, which was now visible. So the umount did work, but not immediately. Strange. – Teemu Leisti Oct 3 '12 at 8:02

I have the exact same problem with Xubuntu 12.04 LTS vanilla (Xfce 4.8) and also with Xubuntu 12.04 with Xfce upgraded to 4.10; both with home folder encrypted

This is a bugger since I was running away from Gnome and Unity resource consuming and Nautilus bug crashing Ubuntu 12.04 LTS

After reading about the bug Xfce not unmounting .gvfs at logout, i figured out it could be automatically unmounted at login, as i was doing mannually.

This is what I did and so far it works:

I created a file with leafpad within my home directory:

placed the following script to unmount .gvfs

/bin/fusermount -zu "$HOME/.gvfs"

in terminal gave it execution permision

chmod 777

then created an autostart application, selecting the corresponding script at: configuration -> configuration administration -> session start -> autostart applications

Name: umountgvfs Comment: script to unmount .gvfs on login Command: /home/YOURUSER/

Since this solved the problems most of the times, but not always, i guessed the script was being called before time, so i added a sleep command (bash -c "sleep 5; command") where 5 is the seconds it delays the script at login, in terminal:

leafpad /home/YOURUSER/.config/autostart/umountgvfs

and edited in the Exec line adding: bash -c "sleep 5; "

[Desktop Entry]
Comment=script to unmount .gvfs on login
Exec=bash -c "sleep 5; /home/YOURUSER/"

Replace YOURUSER with your user name.

Aditional resources:

Delaying the script:

hope this helps

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.