# this file is sourced from /usr/sbin/linuxmuster-pam-mount

# log some info
$LOGGING && msg2log profile-post-mount "Entering 002-nautilus $1 $2"
$LOGGING && msg2log profile-post-mount "Environment settings are: USER=$USER VOLUME=$VOLUME MNPT=$MNTPT OPTIONS=$OPTIONS SERVER=$SERVER NUMUID=$NUMUID NUMPRIGID=$NUMPRIGID FULLNAME=$FULLNAME HOMEDIR=$HOMEDIR LOGINSHELL=$LOGINSHELL"

# this script gets executed only once, after the users home from the
# server gets mounted. in this case $USER and $VOLUME are the same
if [ $USER != $VOLUME ]; then
    return 0
fi

# Action starts here
linktargets=read_simple_config ${CONFDIR}/nautilus-bookmarks.conf
$LOGGING && msg2log profile-post-mount $linktargets
