-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use light mode for mail app. #7
Comments
@KeKsBoTer hey mate, thanks for the feedback. Hmm, that is pretty odd, the output looks correct to me. What about if you close mail and manually run this in the terminal:
Does it have any effect? |
@KeKsBoTer hey mate, I just pushed a new version that should fix this issue, see #16 for more information. Please try version 0.2.1, you can download it here - |
Mail doesn't work for me with 0.2.1 🙁 All other apps worked. Tried |
Seems like the recent fix didn’t do its job properly. I wonder if this has to do with plist caching. I’ll do some more digging when I’m back from vacation to see if we can’t put a nail in the coffin on this shenanigans. I’ll keep you posted! |
@KeKsBoTer @dsalzr mind testing this issue with version 0.4.0? |
Still no change @zenangst 🙁 I even tried restarting after setting mail to light mode. Here's a video of me testing it out: |
@dsalzr bah this issue is tearing me apart, but no worries... we will figure it out eventually. Maybe you could try the following steps.
The first command will kill the preference service for your user, that should clear the plist cache from using the previous value. The second command is what the application run for you when you tap on an icon. /usr/bin/killall -u $USER cfprefsd
defaults write com.apple.mail NSRequiresAquaSystemAppearance -bool true
Sorry for not having the answer to this conundrum just yet, but if you stick with me I'm sure that we can figure something out. If the following does not work, we can try and use |
Did not work for me :/ |
Same here. Did not work with the terminal commands and restarting. Also tried version 0.4.2. Happy to continue testing as you try different things @zenangst |
@dsalzr @KeKsBoTer Still fighting the good fight! A new version just landed which has some minor changes to how preferences are written to their property lists. Mind taking the new version for a spin to see if it does not resolve the issues you have been seeing? https://github.com/zenangst/Gray/releases/download/0.5.0/Gray.zip |
Sketch that, there is a new version that further tries to correct the issue, you can find it here: https://github.com/zenangst/Gray/releases/download/0.5.1/Gray.zip |
@zenangst Thanks for your efforts! Sadly it does not work :/ |
I can make a special version that prints some of the output from the shell commands, that might help to narrow things down. |
I’ve started brewing on a new version with better logging when it saves settings. While implementing it I was one thing that might be the culprit. Right now I’m going to a museum with my kid but I’ll make a new build and notify you peeps when life allows. Stay tuned and thanks for your patience ;) |
@KeKsBoTer @dsalzr mind taking 0.5.2 for a spin - https://github.com/zenangst/Gray/releases/download/0.5.2/Gray.zip If it still does not work with that version, you should be able to use Please provide that info here if you are still having issue :) |
@zenangst did not work but here are the relevant log entries: `default 12:50:10.399054 -0700 Gray New settings for Mail = true default 12:50:10.399101 -0700 Gray command: /usr/bin/killall -u $USER cfprefsd defaults read com.apple.mail NSRequiresAquaSystemAppearance /Users/daniel/Library/Preferences/com.apple.mail.plist error 12:50:10.421866 -0700 kernel Sandbox: defaults(32203) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.VoiceMemos/Data/Library/Preferences error 12:50:10.425372 -0700 kernel Sandbox: defaults(32203) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.Home/Data/Library/Preferences error 12:50:10.425398 -0700 kernel Sandbox: defaults(32203) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.Safari/Data/Library/Preferences error 12:50:10.427555 -0700 kernel Sandbox: defaults(32203) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.iChat/Data/Library/Preferences error 12:50:10.428254 -0700 kernel Sandbox: defaults(32203) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.mail/Data/Library/Preferences error 12:50:10.430973 -0700 kernel Sandbox: defaults(32203) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.news/Data/Library/Preferences error 12:50:10.432752 -0700 kernel Sandbox: defaults(32203) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.stocks/Data/Library/Preferences default 12:50:10.463622 -0700 Gray output: (1 error 12:50:10.534067 -0700 kernel Sandbox: Gray(32069) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.mail/Data/Library/Preferences/com.apple.mail.plist error 12:50:10.534429 -0700 kernel Sandbox: Gray(32069) System Policy: deny(1) file-read-data /Users/daniel/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist error 12:50:10.534825 -0700 kernel Sandbox: Gray(32069) System Policy: deny(1) file-read-data /Users/daniel/Library/Preferences/com.apple.AddressBook.plist |
@zenangst didn't work eather :/ |
@KeKsBoTer @dsalzr thanks guys, it seems like there is something wonky going on with the entitlements. I made a new version, could you try this one? |
For me, the Mail app does not show in the app list at all (I just tried Gray 0.7.1) |
Hey @johnoscott, I think that it has to do with how the applications are being validated. If the Gray is unable to resolve the application plist for the app, it will simply ignore it. I think this needs changing for everything to work properly, I'll look into that issue as well even if it is unrelated to this specific problem. |
@johnoscott mind trying this new version, it should fix the issue with Mail being missing. |
Yes that fixes the missing Mail app but changing the setting does not seem to make any difference. |
@johnoscott mind sharing some log files using the Console.app? |
@KeKsBoTer @dsalzr @johnoscott Here is a question for all of you. Where are you running the application? Did you guys move it to If you don't do that, please try and "install" the app in |
Yes I copied to Applications folder first |
Yes happy to. What exactly do you want ? |
Just post anything that the |
In the log above I did the following :`
Hope this helps |
@johnoscott thanks mate, I'm gonna dig through them later on! cheers! |
I deleted the post and uploaded the log file instead (above) |
I have installed all Gray versions to the Applications folder so far. Also the new 0.71a does not solve the problem with the mail app :( |
Seems like the common theme that I can see is that this is due to sandboxing. @KeKsBoTer @dsalzr @johnoscott thanks y'all for the debug information and again... thanks for your patience ❤️ |
InvestigationI've done some further digging, and it seems that Apple has made it tricky for us. kernel Sandbox: Gray(4664) System Policy: deny(1) file-read-data /Users/username/Library/Containers/com.apple.Home/Data/Library/Preferences/com.apple.Home.plist
kernel Sandbox: Gray(4664) System Policy: deny(1) file-read-data /Users/username/Library/Containers/com.apple.news/Data/Library/Preferences/com.apple.news.plist
kernel Sandbox: Gray(4664) System Policy: deny(1) file-read-data /Users/username/Library/Containers/com.apple.stocks/Data/Library/Preferences/com.apple.stocks.plist
kernel Sandbox: Gray(4664) System Policy: deny(1) file-read-data /Users/username/Library/Containers/com.apple.mail/Data/Library/Preferences/com.apple.mail.plist
kernel Sandbox: Gray(4664) System Policy: deny(1) file-read-data /Users/username/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist So what we are looking at here is the SIP (System Integrity Protection) telling us that we cannot read the files. The reason why this was overlooked when I tested this was that I was running macOS Mojave with SIP disabled (mainly to get TotalSpaces2 and cDock working). I'm still investigating this to see if there is any light at the end of the tunnel. Workaround
For screenshots about the process, check out MacWorld's article Your preferences should stay intact even with SIP-enabled. |
@KeKsBoTer @dsalzr @johnoscott So. I did some more digging and found this setting under I tried it out with SIP-enabled and it worked. Please try giving the app the privileges it needs to see if that doesn't fix the issue :) |
@zenangst That worked 🤩^^^ (Security & Privacy > Full Disk Access > + > Gray.app) |
Fantastic, me and @RamonGilabert are working on some killer UX for the app to make the process more streamlined. If you launch Gray without enough privileges to change Mail, we will show what needs to be done for it to work :) Thank you so much for sticking with us in all of this ❤️ |
We just released 0.8.0 so its time to put this issue to rest. Thanks to everyone for their participation, sending logs and following up played an enormous part in tracking this issue down. Loads of love ❤️ |
Thanks man! it works ❤️ |
Working now for Mail BUT when Mail is open and Gray changes the setting, Mail restart doesnt work. It does Quit, but doesnt start up automatically again. |
@johnoscott Yeah, it seems like the restart mechanism needs a bit of work. Still struggling a bit with some stutter when invoking shell scripting. Hoping to improve this in future versions of the app. |
First of all: Nice tool, I have been locking for something like this for a while!
It works fine for all apps but mail. I use global dark mode, but cannot set light mode for the mail app.
The defaults for mail are the following:
The text was updated successfully, but these errors were encountered: