blavejr / OrganiseDesktop

Python script that cleans up a messy desktop
MIT License
92 stars 78 forks source link

Would you still like help with automation? #24

Open rfaile313 opened 6 years ago

rfaile313 commented 6 years ago

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?

blavejr commented 6 years ago

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

rfaile313 commented 6 years ago

Will do, I'm on it!

blavejr commented 6 years ago

Brilliant.

rfaile313 commented 6 years ago

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!

blavejr commented 6 years ago

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

rfaile313 commented 6 years ago

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.

blavejr commented 6 years ago

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

rfaile313 commented 6 years ago

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

sudoplox commented 6 years ago

Great progress.

blavejr commented 6 years ago

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

rfaile313 commented 6 years ago

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

blavejr commented 6 years ago

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

omerharshit commented 6 years ago

I want to contribute as an python devloper.

dhamodaran-pandiyan commented 4 years ago

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