Re: Disable Trash completely

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: pgpHAHEn1laTd.pgp
Description: PGP signature

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

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux