Comment 2 for bug 400830

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 400830] [NEW] shared folder still shared even if recreated after deletion

On Saturday 18,July,2009 02:58 AM, John Baptist wrote:
> To reproduce, on Karmic 9.10 Alpha 2:
>
> 1. Create a new folder.
> 2. Select Sharing Options from its menu.
> 3. Turn on sharing. (At this point samba may install, if you haven't shared before.)
> 4. The sharing emblem appears on the icon. Okay.
> 5. Now delete the folder.
> 6. Now create a new folder with the same name.
> 7. It still has a sharing emblem, at what is more, is still shared! I expected that it would be a new, unshared folder.
It's a new folder, yes. But it's still shared.

> Proposed solution: unshare folders when deleted, and possibly also when
> moved/renamed.
I believe there isn't a way to detect when folders are deleted, moved,
or renamed in Nautilus, due to shortcomings in its extension interface
at the moment. I'll mark this as affecting Nautilus as well.

  affects ubuntu/nautilus-share
  status confirmed
  importance wishlist

  affects ubuntu/nautilus

A workaround that could be implemented in nautilus-share code would be
to detect whether the path exists when loading the list of shares, and
deleting the share if the path does not exist. However, this could cause
issues for shares in certain mountpoints which have not been mounted yet
when Nautilus loads.

The best way would be for Nautilus to have some manner of allowing
plugins to hook onto events such as deletion/renaming of files and folders.

--
Kind regards,
Chow Loong Jin (GPG: 0x8F02A411)
Ubuntu Contributing Developer