Thanks for your reply. I have created a desktop file to show the trash icon on desktop. I mean that is the way I found it should be done. I need to check /home/user/.local/Trash/files/. If a file exists in it, the icon will change to a full trash icon, otherwise it should be changed again to an empty trash icon.
I have (till now) made a script with a while (true) loop that runs in the background. This way I have eliminated cron. Is there another way to do it please? On 26 August 2012 13:51, Baurzhan Muftakhidinov <baurthefi...@gmail.com>wrote: > Is this really supposed to be done via cron job? Which folder and how > often you > willing to check, (I am just curious)? > > Pcmanfm couldn't handle standard gvfs Trash and change icon accordingly? > > On Sun, Aug 26, 2012 at 4:50 PM, Robert Spiteri <rspiter...@gmail.com> > wrote: > > I need to make a cron job to check if a particular directory is empty or > > not. The cron job is supposed to be readily available when the live > system > > boots. How can I do that? > > > > My intention is to change the trash icon to a full one when a file is > > deleted. I will be using pcmanfm. > > > > thanks in advance. > > > > -- > > Robert > > > -- Robert