Comment 7 for bug 435719

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

a simpler/cleaner (?) way would be to add a script in /etc/X11/Xsession.d/, those are run as the user so no sudo'ing is necessary (and I used /tmp, for keeping the namespace cleaner). This is what we have now:

# create users gvfs mountpoint in /tmp
[ ! -d /tmp/.gvfs-$USER ] && mkdir -m 0700 /tmp/.gvfs-$USER
# remove ~/.gvfs and create the symlink
rmdir ~/.gvfs 2>/dev/null || rm ~/.gvfs
ln -s /tmp/.gvfs-$USER ~/.gvfs