Re: [Tails-dev] Trash on persistent volume

Delete this message

Reply to this message
Author: intrigeri
Date:  
To: The Tails public development discussion list
Subject: Re: [Tails-dev] Trash on persistent volume
hi,

sajolida@??? wrote (31 Aug 2013 13:43:13 GMT) :
> As pointed out in a Whisperback report, there is currently no way of
> emptying the trash stored in the persistent volume without interacting
> with hidden files. I think that's an important usability issue.


Agreed.

> Without talking about the implementation details, what we could do is:


> - Keep this trash on the USB stick, and have it persistent. But still
> have it taken into account when doing "Empty Trash".


Hmm. This looks perfect. I guess upstream has already discussed this
3 times and decided against it for some good reason, or?

> - Move files out of the persistent volume into the main trash when doing
> "Move to trash" on the Persistent folder. So that trash won't be
> persistent and will be merged with the main trash. The files are removed
> whenever Tails is shut down.


This is likely too heavy on memory to be a reasonable
solution, unfortunately.

> - Automatically empty the trash of the Persistent folder when shutting
> down; right before unmounting the persistence volume. I understand that
> this will not work when doing an emergency shutdown.


This would seem acceptable to me. I'd be happier if we didn't have to
add more code to get some reasonable result, though.

Another way would be to just disable Trash on the persistent volume.
I've not read the Trash specification [1], and I've not tested it
either, but I've seen $someone_on_the_Internet suggest that creating
$PERSISTENCE/.Trash and/or $PERSISTENCE/.Trash-1000 as *regular* files
would be enough to achieve this.

[1] http://standards.freedesktop.org/trash-spec/trashspec-latest.html

Cheers,
--
intrigeri
| GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
| OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc