Nautilus overwrites user directory config when mounted with nfs

Bug #1324358 reported by Josh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu GNOME
New
Undecided
Unassigned

Bug Description

I am running Ubuntu 14.04 with Gnome Shell 3.12.1. I use a network file server for most of my user home directories. To do this I mount a remote drive from a network server via nfs at boot time:

$ tail -n 2 /etc/fstab
# Remote NFS home
homeserver:/home /homeserver nfs rsize=8192,wsize=8192,timeo=50,hard,intr,async,nodev,nosuid 0 0

and have configured the user directories in Nautilus thus:

$ cat ~/.config/user-dirs.dirs
# PLACE ME IN ~/.config
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="/homeserver/user/Desktop/"
XDG_DOWNLOAD_DIR="/homeserver/user/Downloads/"
XDG_TEMPLATES_DIR="/homeserver/family/Templates/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="/homeserver/user/Documents/"
XDG_MUSIC_DIR="/homeserver/family/Music/"
XDG_PICTURES_DIR="/homeserver/family/Pictures/"
XDG_VIDEOS_DIR="/homeserver/family/Videos/"

Everything is fine until I reboot. Then Nautilus overwrites my custom configuration (despite the file header comments):

$ cat ~/.config/user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

As a work around, I recopy the former user-dirs.dirs file back to ~/.config/user-dirs.dirs, kill and restart Nautilus and everything is fine again, except that I have to do this every time I boot.

Please, any advice on how to make my nfs mounted custom configuration stick. Thanks in advance!

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: nautilus 1:3.12.2-0ubuntu1~trusty2 [origin: LP-PPA-gnome3-team-gnome3-staging]
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic i686
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: i386
CurrentDesktop: GNOME
Date: Wed May 28 21:24:44 2014
GsettingsChanges:

InstallationDate: Installed on 2014-05-04 (24 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Release i386 (20140416.2)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Josh (josh-holthaven) wrote :
Revision history for this message
F481 (fabi-kcirf) wrote :

Same behavior with a NTFS mount

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.