kush-agra / Dynamic_Walls

Replicating macOS Mojave's dynamic wallpaper feature
https://github.com/kush-agra/Dynamic_Walls-app/
42 stars 3 forks source link

How to stop the script before switching to the app version? #11

Closed AlexanderProd closed 6 years ago

AlexanderProd commented 6 years ago

How can I stop the script before switching to the app version or just updating it?

kush-agra commented 6 years ago

If you are using a cron job to run it then just go to terminal and write env EDITOR=nano crontab -e and erase the line and then control + o and then enter and control + x to save it

If you are using a version above 1.7.4 then run the command launchctl list | grep -v com.apple and find the activity with label wallpaper or Dynamic_Walls.Scheduler

next just run the command launchctl unload -w /Users/<YOUR USERNAME>/Library/LaunchAgents/<NAME OF THE LABEL YOU SAW ABOVE>.plist

Let me know if that works :)

AlexanderProd commented 6 years ago

Thanks for your help! the launchctl list | grep -v com.apple command told me that there's a activity called wallpaper running. But running launchctl unload -w /Users/<YOUR USERNAME>/Library/LaunchAgents/wallpaper.plist returned No such file or directory.

Then I took a look at the /Users/<YOUR USERNAME>/Library/LaunchAgents/ folder and found the _Dynamicwalls.Scheduler.plist file.

After that I ran the launchctl unload -w /Users/<YOUR USERNAME>/Library/LaunchAgents/Dynamic_walls.Scheduler.plist command and it successfully stopped the process.

I hope this was the right approach. I'm going to beta test the app now. :)