Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107102 - Nautilus does not show updates to directory listings if current directory is a symlink
Summary: Nautilus does not show updates to directory listings if current directory is ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-24 12:05 UTC by Alex Jones
Modified: 2007-03-04 20:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Jones 2005-09-24 12:05:52 UTC
Naturally, famd (seems to, IANAP) only report changes for the canonical
directory. So if I open ~/pictures and ~/filestore/pictures (the first being a
symlink to the second), I can make changes in ~/pictures and see the updates in
~/filestore/pictures, but if I do anything in ~/filestore/pictures I don't see
the updates in ~/pictures.

I guess Nautilus asks for events for the current directory, but doesn't check if
the current directory is a symlink. In such an event, it should do the right
thing and monitor the canonical path for the current folder.

I'd reckon this needs checking with Gamin, but I think it's more a problem with
Nautilus than the file alteration daemon, as it is unreasonable to expect it to
know about a directory's externally linked names.

Cheers

Reproducible: Always
Steps to Reproduce:
1. `mkdir test`
2. `ln -s test testlink`
3. `gnome-open test`
4. `gnome-open testlink`
5. `touch test/testfile`
Actual Results:  
directory listing is updated in only the Nautilus window displaying the "test"
folder

Expected Results:  
both directory listings should have been updated, because nautilus should have
been monitoring "test" for both windows

Refresh the folder views to confirm that the folders are linked.

Nautilus version 2.10.1
GNOME Desktop version 2.10.2

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk
ftp://gentoo.blueyonder.co.uk/mirrors/gentoo
ftp://pandemonium.tiscali.de/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac abook acpi alsa apache2 apm artworkextra avi bash-completion
berkdb bzlib calendar cdr cjk cli crypt cups curl divx4linux doc dv dvd dvdread
eds emboss encode esd exif fam fame fastcgi fbcon fla flac foomaticdb fortran
ftp gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile hal imap imlib ipv6
jabber jack java jpeg kde ldap libg++ libwww mad mikmod mime mmx motif mozilla
mp3 mpeg msn mysql ncurses nls nptl nptlonly ogg oggvorbis opengl pam pcre
pdflib perl php png ppds python qt quicktime readline sdl spell ssl subtitles
svg svga tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts
unicode usb videos vorbis win32codecs wmf wxwindows xml2 xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Cheers guys
Comment 1 Alex Jones 2005-09-25 05:47:36 UTC
Actually, had another think about this this morning. Maybe it is famd or gamin
that should pick up when you tell it to monitor a folder that is a symlink?

I'm not sure what I was thinking yesterday, but it makes more sense that way I
think.
Comment 2 Alex Jones 2005-09-26 14:03:02 UTC
Works fine with Gamin. I assume this will be a non-issue in GNOME 2.12 if we are
defaulting to Gamin over FAM?
Comment 3 John N. Laliberte (RETIRED) gentoo-dev 2005-10-07 05:09:29 UTC
its recc. to use gamin, although it still unstable at this point
Comment 4 Alex Jones 2005-10-08 14:14:21 UTC
This does not work with Gamin using inotify. Curses!
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2006-06-13 21:02:11 UTC
Hum it looks like it works for me. I'm using gnome-2.14

Can you reproduce this problem by now ?
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2007-03-04 20:05:36 UTC
This is fixed, closing. Don't hesitate to reopen or file a new bug if it still happens :) Thanks