OrganiseDesktop icon indicating copy to clipboard operation
OrganiseDesktop copied to clipboard

Would you still like help with automation?

Open rfaile313 opened this issue 7 years ago • 14 comments

If so, how do you want to automate it? Do you want to run a timer in the script and leave it running, or create a bash script that runs the script every day?

rfaile313 avatar Dec 04 '17 20:12 rfaile313

hi @rfaile313, I think a bash script would be a better solution, take a crack at it please.

blavejr avatar Dec 05 '17 06:12 blavejr

Will do, I'm on it!

rfaile313 avatar Dec 05 '17 07:12 rfaile313

Brilliant.

blavejr avatar Dec 05 '17 08:12 blavejr

Alright,

I've added a simple bash script to run your desktop cleaner. RunDesktopCleanerDaily.zip The first path specifies the location of the Python version you're looking to use (helpful, because many Unix systems have python2 installed and your script is Python 3+. The second is the location of the Python script itself. You, or any user that uses this shell script will need to point those paths appropriately.

I think the best bet is to implement a cron job to run the bash script daily. It's really easy, and will run over any UNIX based system (Linux, Mac, etc.)

cron will run the shell script which in turn runs the desktop cleaner script periodically at fixed times, dates, or intervals.

In the command line run:

crontab -e

This will open the vi editor, and you will need to add this:

0 18 * * * /home/MyUser/MyCrons/RunDesktopCleanerDaily.sh

with /home/MyUser/MyCrons/RunDesktopCleanerDaily.sh being your absolute path to the shell script i attached.

This, for example, this will execute the Desktop Cleaner Python script every day at 6 PM.

I think this solves your automation issue, but let me know what you think and/or if you have any questions!

rfaile313 avatar Dec 05 '17 09:12 rfaile313

@rfaile313 please send a PR request so I can review.

blavejr avatar Dec 05 '17 09:12 blavejr

There's no compare, these are all external features that you will have to describe and setup for people to be able to automate your script.

rfaile313 avatar Dec 05 '17 09:12 rfaile313

Oh alright, its great than. as long as we have made some progress on it. we can work on making it simpler later.

blavejr avatar Dec 05 '17 09:12 blavejr

No doubt. I'd like to continue helping, let's keep chatting. I'm not sure it gets much easier than this though.

rfaile313 avatar Dec 05 '17 10:12 rfaile313

Great progress.

sudoplox avatar Dec 05 '17 11:12 sudoplox

Haha @rfaile313 just read the code and add anything you feel is needed, whatever you want to add, you are free!

blavejr avatar Dec 05 '17 13:12 blavejr

What's the status on this? Did you still want to try and do it without a bash script/cronjob?

rfaile313 avatar Dec 08 '17 16:12 rfaile313

yeah I want to try it but you haven't sent in a pr request. How do I get your files?

blavejr avatar Dec 09 '17 10:12 blavejr

I want to contribute as an python devloper.

omerharshit avatar Jul 06 '18 09:07 omerharshit

Is this issue still active? If so, please share the progress, otherwise people can start work on it.

dhamodaran-pandiyan avatar Jul 27 '20 13:07 dhamodaran-pandiyan