2008/7/4 David Faure &lt;<a href="mailto:dfaure@trolltech.com">dfaure@trolltech.com</a>&gt;:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">&gt; It&#39;s correct? If it do, I think that the sentence &quot;A relative pathname<br>
&gt; is to be from the directory in which the trash directory resides (i.e.,<br>
&gt; from $XDG_DATA_HOME for the "home trash" directory);&quot; should use a<br>
&gt; example not involving the &quot;home trash&quot; directory. We say that relative<br>
&gt; path names should not be used in &quot;home trash&quot; directory while a moment<br>
&gt; ago we use the &quot;home trash&quot; directory as example to explain the<br>
&gt; meaning of the relative pathnames.<br>
<br>
</div>Yeah. It would be better to say &quot;from the directory in which the<br>
trash directory resides (i.e. from $topdir)&quot;</blockquote><div><br>I think is too easy to interpret the directory where the &#39;trash directory&#39; resides as the parent directory of the &#39;trash directory&#39;.<br>
I think that to be unambigous the Spec should at least define the meaning of the term &quot;reside in&quot;, but this is not necessary. <br><br>I suggest to remove the &quot;from the directory in which the trash directory resides&quot; and simply say that &quot;the relative path are from the $topdir&quot;.<br>

<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
&gt; 2)<br>
&gt; The specification does not clearly tell when use the absolute paths and<br>
&gt; when use the relative path. I think this behaviour should be explicitly<br>
&gt; specified.<br>
<br>
</div><br>Yes. Although the above would solve this too.<br>
Home trash -&gt; absolute paths.<br>
Other trash dirs -&gt; relative paths.<br>
This is what I did in the KDE implementation.</blockquote><div>&nbsp;</div><div>I suggest to modify the Spec to add these sentences.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">
&gt; 3)<br>
&gt; What happen in the following situation? [...]<br>
&gt;<br>
</div><br><div class="Ih2E3d">&gt; The relative path names are relative from the directory which the trash<br>
&gt; directory resides (/mnt/disk1/.Trash/).<br>
&gt; The relative path name is &quot;../foo&quot;.<br>
<br>
</div>No no, what this means here is: relative to the $topdir. This is where the trash resides,<br>
globally, without taking into account the small detail of the .Trash/$uid subdir stuff.<br>
The relative path on this partition is &quot;foo&quot;.<br>
I agree that this could be misread, but then it doesn&#39;t make sense :-)<br>
What makes sense, is to store relative paths from the mountpoint, i.e. from $topdir.</blockquote><div><br>Ok, now it makes sense.<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">
&gt; 4) Personal trashcans<br>
&gt; We use the numeric $uid to identify the personal trashcans.<br>
&gt; But, for a usb pen, there is the need to have many personal trashcans?<br>
&gt; The same person could have different $uid on different machines.<br>
&gt; When she/he trash a file containted in the usb pen disk on a system<br>
&gt; he/she expect to found the trashed files in the trashcan even if the<br>
&gt; she/he uses the usb-pen disk on another system (even if in this system<br>
&gt; her/his $uid number is different).<br>
<br>
</div><br>Yes. I think this was discussed during the elaboration of the spec, but I don&#39;t<br>
remember what was said exactly. Might be a good idea to read those arguments<br>
first, unless Alexander remembers.<br>
Ah I see a post from him on 06-Feb-2008 about this very problem... I thought I answered<br>
it but it seems I didn&#39;t. I&#39;ll do so now, quoting it all so you get that post too :)</blockquote><div><br>I think that the Spec would be better if those design decision justification are inserted in the Spec, or collected in a companion document, instead to be left them unorganized in the xdg mailing list archive. <br>
&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&gt; 5) Interoperability with other Operating Systems. [...]<br>
<div class="Ih2E3d">&gt; I think that the Trash Spec should require (or suggest) to conform to<br>
&gt; the de-facto standard on these filesystems.<br>
<br>
</div>From an implementor point of view I guess it could be interesting to have<br>
pointers to those other specs, even though from a standard specification<br>
point of view it&#39;s a bit strange to point people to other (de-facto) standards... ;)</blockquote><div><br>I see, but the thing that I don&#39;t like from a user point the following is strange:<br><br>- the user has a dual boot machine<br>
- under linux the user trashes many Gb in the trashcan<br>- some time after the user is using in Windows, and notices that the disk free space is low<br>- the user empties the Windows recicle bin but the free space is still low<br>
<br>The user should knows that there are two different data structure for the trashcan in her/his disk? <br></div></div><br>I think that the Spec should specify that are not recommended to be used on filesystem like VFAT, NTFS, and HFS .<br>
<br>-- <br>Andrea Francia