Re: Cron jobs question

2012-08-26 Thread Robert Spiteri
Solved the problem with a while (true) bash script that executes on openbox startup. The script sleeps for 1 second not to spike CPU usage to 99%... On 26 August 2012 14:27, Robert Spiteri wrote: > Yes I did. But pcmanfm does not have an option to include the trash > desktop icon unless you manu

Re: Cron jobs question

2012-08-26 Thread Robert Spiteri
Yes I did. But pcmanfm does not have an option to include the trash desktop icon unless you manually create a desktop shortcut file... I could not find the option at least, if there is one... On 26 August 2012 14:03, Baurzhan Muftakhidinov wrote: > Have you included gvfs package? As far as I reme

Re: Cron jobs question

2012-08-26 Thread Baurzhan Muftakhidinov
Have you included gvfs package? As far as I remember Trash service works through gvfs. On Sun, Aug 26, 2012 at 5:54 PM, Robert Spiteri wrote: > 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 > c

Re: Cron jobs question

2012-08-26 Thread Robert Spiteri
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 emp

Re: Cron jobs question

2012-08-26 Thread Baurzhan Muftakhidinov
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 wrote: > I need to make a cron job to check if a particu

Cron jobs question

2012-08-26 Thread Robert Spiteri
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.