i was very excited to add this and that is why i posted sort of half baked solution hoping that you can figure out the rest.
to be fair I have to add the complete (working oob solution) rather than just variable evaluation.
1) the existing mount point needs to be disconnected. because it is session based you want to add unmount line to Default gdm PostSession and below is one of the ways to do accomplish it:
cat << EOF | sudo tee /etc/gdm/PostSession/Default >/dev/null
#!/bin/sh
2) create ~/bin directory (mkdir ~/bin), add this directory to search path in /etc/environment so it looks roughly like this:
PATH=/home/<username>/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/<username>/.local/bin
3) .bashrc gets the following entry
$HOME/bin/gvfs-daemon-start
4) make gvfs-daemon-start executable and the script roughly it looks like this:
i was very excited to add this and that is why i posted sort of half baked solution hoping that you can figure out the rest.
to be fair I have to add the complete (working oob solution) rather than just variable evaluation.
1) the existing mount point needs to be disconnected. because it is session based you want to add unmount line to Default gdm PostSession and below is one of the ways to do accomplish it:
cat << EOF | sudo tee /etc/gdm/ PostSession/ Default >/dev/null
#!/bin/sh
/bin/fusermount -zu "$HOME/.gvfs" 1>/dev/null 2>&1 || true
exit 0
EOF
2) create ~/bin directory (mkdir ~/bin), add this directory to search path in /etc/environment so it looks roughly like this: <username> /bin:/usr/ local/sbin: /usr/local/ bin:/usr/ sbin:/usr/ bin:/sbin: /bin:/usr/ games:/ home/<username> /.local/ bin
PATH=/home/
3) .bashrc gets the following entry gvfs-daemon- start
$HOME/bin/
4) make gvfs-daemon-start executable and the script roughly it looks like this:
#!/bin/bash
MNT=.gvfs
PIDOF=`pidof gvfs-fuse-daemon`
RETVAL=$?
if [ "$RETVAL" -eq 1 ]; then lib/gvfs/ /gvfs-fuse- daemon ~/$MNT
# echo "Mounting $MNT"
log_daemon_msg "Mouting $MNT"
/usr/
log_end_msg 0
else
echo "you be fortune."
fi
5)log off the session, log back in and make necessary adjustments if you feel like it.
cheers