HOWTO - disable macOS (Mojave) dark mode for a specific/single app
While macOS Dark mode is great, in general, I find myself confusing it with specific app modes. Namely, Google Chrome Icognito.
Therefore, the following instructions provide a quickstart/reminder of how to disable Dark Mode for particular apps.
Find the application Bundle
osascript command to find the Bundle name:
osascript -e 'id of app "Some Random App"'
osascript -e 'id of app "Google Chrome"'
Disable Dark mode for a Bundle
Now use the following command to disable the app
Bundle_Identifier retrived from the previous step:
defaults write Bundle_Identifier NSRequiresAquaSystemAppearance -bool yes
Continuing the previous example:
defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool yes
Unfortunately, one must restart the app in order for the new settings to take effect :(
For whatever reason, should you want to reset the Bundle to defaults use the following command:
defaults delete Bundle_Identifier NSRequiresAquaSystemAppearance
All credit goes to the following post (this is just a tl;dr :)