Comment 11 for bug 479475

Revision history for this message
Roman Yepishev (rye) wrote :

After spending some time trying to do clever things for 'Shared With Me' emblems I ended up with the following:

All signals use $HOME/.local/share/ubuntuone/shares directory for shared files, and 'Shared With Me' is a symlink to this directory.
Since Nautilus never visits the original directory it is not possible to get NautilusFileInfo for it.

<alex> rtg: The correct way to implement something like that is to request the NautilusFileInfo object for the uri that change, if it exists, and if so call a "refresh" operation on it
<alex> rtg: such support doesn't exist, but i'd be happy getting patches to add it
https://bugs.launchpad.net/ubuntu/+source/ubuntuone-client/+bug/491777/comments/2

It is possible to create internal mapping for symlink to real file relation, however the reverse mapping is needed as well. It might be possible to create a static mapping for $HOME/.local/share/ubuntuone/shares<->$HOME/Ubuntu One/Shared With Me. I don't like hardcoding paths but, unless the patch for Nautilus is created, we might end up doing this.

P.S. We still need some emblem for u1conflict files.