Hi Dimitris,

that's better, but not all.
I looked at what the system does when I throw something away.
In /home/username/.local/share/Trash/info there is a file 
"(Filename).trashinfo".
This is a text file with
[Trash Info]
Path=/home/username/Test/img_3555.jpg
DeletionDate=2009-10-09T07:47:45

So, to let the user see what was deleted and to give the possibility to undo 
the deletion, it would be necessary to generate
a text file with these informations.

Regards,
Matti

Dimitris Anogiatis schrieb:
> hey Matti,
> 
> Ricardo was correct, almost :)
> the correct path is to move the  files to is
> /home/username/.local/share/Trash/files
> 
> I hope this helps
> 
> Regards,
> Dimitris
> 
> On Thu, Oct 8, 2009 at 2:58 PM, Matti <math.e...@t-online.de> wrote:
> 
>> Thank you, that works.
>>
>> Just 1 question; This way, the deleted files/directories are not shown if
>> the user
>> clicks on his trash icon. How to manage that?
>>
>>
>> Ricardo Díaz Martín schrieb:
>>> I tryed in ubuntu linux you can do EXEC ["mv", "pathandfiletoremove",
>>> "/home/username/.local/share/Trash"] and the file is moved to username
>> trash
>>> Regards
>>>
>>> 2009/10/8 Matti <math.e...@t-online.de>
>>>
>>>> Is there any way to move files and directories to the user's trash bin?
>>>>
>>>> KILL and RMDIR really delete, but I'd rather use trash.
>>>>
>>>> Tried everything like MOVE TO "system:/trash" or
>> "<user>.local.share.Trash"
>>>> or "trash.desktop", but all I get is the message
>>>> "Access forbidden". That's on a SuSe 11 system.
>>>>
>>>> Thanks
>>>> Matti
>>>>
>>>>
>>>>
>> ------------------------------------------------------------------------------
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and
>> stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> Gambas-user mailing list
>>>> Gambas-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to