Re: [Gambas-user] Trash

2009-10-13 Thread Matti
Now I found an even easier way. The solution is already on board. Under KDE, just use SHELL "kioclient move /home/user/filename trash:/" That's all. Moves the file to trash with all the recover informations and even shows the correct desktop icon. For Gnome, there should be a similar command av

Re: [Gambas-user] Trash

2009-10-11 Thread Matti
That makes it easier. Fine, thanks, Jose. Matti Jose J. Rodriguez schrieb: > On 10/8/09, Matti wrote: >> Is there any way to move files and directories to the user's trash bin? >> > > Until someone implements the freedesktop.org trash specs on Gambas, > you could try this: http://code.google.com

Re: [Gambas-user] Trash

2009-10-09 Thread Jose J. Rodriguez
On 10/8/09, Matti wrote: > Is there any way to move files and directories to the user's trash bin? > Until someone implements the freedesktop.org trash specs on Gambas, you could try this: http://code.google.com/p/trash-cli/ Or a more involved general solution: http://freshmeat.net/projects/dels

Re: [Gambas-user] Trash

2009-10-08 Thread Matti
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

Re: [Gambas-user] Trash

2009-10-08 Thread Dimitris Anogiatis
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 wrote: > Thank you, that works. > > Just 1 question; This way, the deleted files/directories

Re: [Gambas-user] Trash

2009-10-08 Thread Matti
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

Re: [Gambas-user] Trash

2009-10-08 Thread Ricardo Díaz Martín
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 > Is there any way to move files and directories to the user's trash bin? > > KILL and RMDIR really delete, but I'd rather u

[Gambas-user] Trash

2009-10-08 Thread Matti
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 ".local.share.Trash" or "trash.desktop", but all I get is the message "Access forbidden". That's on a SuSe 11 system.