-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Deleting old wallpaper files from previous runs so the temp folder …
…does not get polluted
- Loading branch information
1 parent
0a78695
commit 482d38e
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
482d38e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a script that uses ChangeMenuBarColor to switch between DarkMode/NormalMode for multiple desktops.
The switch between the desktop is done by a little AppleScript(and setting some Shortcuts to switch the desktops).
When I run ChangeMenuBarColor with this change 2 times in a row for two desktop (4 times in sum) I end up with all files deleted from folder:
~/Library/Application Support/ChangeMenuBarColor
My script had its own cleanup method for deleting old wallpaper files but it was time based and only deleted files older than 50 minutes.
After analysing the issue caused by this commit is comment the cleanup line out and saw it was not causing the problem, but this commit here.
Here is the script I use the change the menu bar for multiple desktops:
482d38e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can run the utility for a space, get the generated wallpaper file, move it to a different location and set it as wallpaper with osascript
482d38e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many roads leads to Rome.
I just forked this repo and removed this commit here and now run in the script my own repo without this commit and this works too.
It was just a suggestion that there is maybe another ways to cleanup and that using ChangeMenuBarColor with multiple spaces can cause trouble.