Trash spec 0.3 ; Samba/CIFS shares?

David Faure dfaure at trolltech.com
Fri Sep 10 05:14:37 EEST 2004


On Friday 10 September 2004 03:31, Lars Hallberg wrote:
> David Faure wrote:
> 
> >>This also makes some winbind situations unusable, 
> >>where the UID may (will) change between systems, but this is mapped out
> >>properly on the other end.
> >>    
> >>
> >
> >I googled around and I learned that you can indeed map UIDs when mounting an
> >NFS share. OK, but what guarantee is there that the mapped uids have the same
> >username on each end?
> >IMHO with network shares we can't get it right in all cases anyway...
> >  
> >
> This might make it work in most case:
> 
> If .Trash/$uid/ and .Trash_$uid dont exist or is not owned by You, check 
> alla .Trash/*/ and .Trash_$uid if You own any, then use that (possably 
> renaming it if possably).

This is slow, and requires read permissions in the .Trash dir, which we might
not want, as Alexander pointed out. The whole idea was to know in advance
the name of the trash dir to use, as opposed to trying them all.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the xdg mailing list