Re: Automate emptying trash bin

subbukk <[email protected]> Thu, 4 Jan 2007 13:39:21 +0530
Newsgroups gmane.comp.kde.kiosk
Message-ID <[email protected]>
On Thursday 04 January 2007 08:25, Murray Trainer wrote:
> Hi Michael,
>
> Thanks for that.  Unfortunately the ktrash --empty requires an
> X-session to be running.  I might have to just do:
>
> rm -f ~/.local/Share/Trash/files/*
> rm -f ~/.local/Share/Trash/info/*
This is safer:
/bin/rm -f ${XDG_DATA_HOME:-~/.local/share}/Trash/{files,info}/*

btw, the full specification for Trash is in 
http://www.freedesktop.org/wiki/Standards_2ftrash_2dspec

The path spec is $XDG_DATA_HOME/Trash and can be overridden by config 
settings. XDG_DATA_HOME defaults to ~/.local/share

Regards .. Subbu