Disable Trash completely
Gary L. Greene, Jr.
greeneg at phoenuxos.com
Thu Dec 28 20:49:36 GMT 2006
On Thursday 28 December 2006 15:38, Ryo Furue wrote:
> Hello,
>
> | You can call the kde trash from commandline. Write a script file with the
> | name "trash" (or whatever you like) with the following content:
> |
> | kfmclient move $@ trash:/
>
> I think
>
> kfmclient move "$@" trash:/
>
> is more robust. When the filenames contain blanks, $@ and "$@"
> behave differently (and the latter does the correct thing). (*)
> I mean this situation, say,
>
> $ trash 'file name'
>
> Regards,
> Ryo
> --------
> (*) Usually, a double-quoted string is a single string;
> for example, "$USER's home directory is $HOME." is a single string.
> But, "$@" is an exception (and I think it's the only exception).
> ___________________________________________________
> This message is from the kde mailing list.
> Account management: https://mail.kde.org/mailman/listinfo/kde.
> Archives: http://lists.kde.org/.
> More info: http://www.kde.org/faq.html.
To extend this even further take a look at the ktrash command to give you the
ability to empty the trash and restore items from it. With some perl or bash
scripting you could make a full trash command for cli for managing and
trashing files that plays well with the FD.org trash can.
--
Gary L. Greene, Jr.
Sent from: uriel.tolharadys.net
15:47:02 up 2 days, 17:25, 5 users, load average: 3.03, 2.45, 1.92
=========================================================================
Volunteer Developer for the PhoeNUX OS and KDE open source projects
See http://www.phoenuxos.com/ and http://www.kde.org for more
information
=========================================================================
Please avoid sending me Word or PowerPoint attachments.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde/attachments/20061228/922e8901/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list