Plugin page crash (all disable) if you remove a shared directory.
@jrd
Submitted by Cyrille Pontvieux Assigned to Daniel Morales
Description
If you share a repository using this plugin, then you delete this directory without removing the share, samba is ok with that, but not the plugin. Why? Because the plugin rely on the equivalent of the command "net usershare info", and if a shared directory has been removed, you got this:
info_fn: file /var/lib/samba/usershares/lan is not a well formed usershare file. info_fn: Error was Path is not a directory.
'lan' was my share for the deleted "/home/cpontvieux/LAN" folder path defined in it. So in function "refresh_shares" in shares.c, net_usershare_run will fail and you the whole Gtk Page in thunar will be grayed out.
Remove the failed share and the plugin page is ok again.
Sorry I don't know samba share C functions and cannot provide a patch for it.
P.S. Tested using sha1 3a89ca67 on Thunar 1.4