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
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
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
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
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
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
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
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.