John Fischer wrote:
> Darren,
>
> Can you address John's concern about someone using the UNIX mv
> command on the directory name?
Apologies, I thought that I had responded to everything.
>
>>> What happens when the user renames the directory via
>>>
>>> % mv Musik "My Music"
>>>
>>> i.e., how does the system notice the change and update this cached
>>> copy of the filename? I presume it has a filesystem change notifier,
>>> and that it can do some diagnostics when it discovers that the old
>>> name is no longer there...
How you rename the directory is important - in that what happens depends on
whether you use a terminal or the GNOME File Browser (nautilus).
For users that don't use the terminal and use the file browser (nautilus) the
change *will* be noticed - so if you rename one of the special directories
there, then the user-dirs.dirs file will get updated to match.
In this case, using the mv command, while on next-login it will notice that the
directory has moved, it cannot reconcile where it's moved to since it is not
permanently monitoring for such changes - this program is normally only run
during the login cycle.
On next login, it will only notice that the directory is gone and assume that
you didn't want a specific directory for your (in this case) Music and assign
${HOME} as the directory for storing it.
If you want to permanently change the directory name you would have to edit the
file ~/.config/user-dirs.dirs and make the appropriate change there too -
essentially duplicating what nautilus is doing.
Thanks,
Darren.