Post

Disabling macOS Mojave dark mode for a specific app

HOWTO disable macOS Mojave dark-mode for a specific app (e.g. Google Chrome)

Disabling macOS Mojave dark mode for a specific app

HOWTO - disable macOS (Mojave) dark mode for a specific/single app

Introduction

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

Use the osascript command to find the Bundle name:

1
osascript -e 'id of app "Some Random App"'

For example, Google Chrome:

1
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:

1
defaults write Bundle_Identifier NSRequiresAquaSystemAppearance -bool yes

Continuing the previous example:

1
defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool yes

Restart

Unfortunately, one must restart the app in order for the new settings to take effect :(

Resetting

For whatever reason, should you want to reset the Bundle to defaults use the following command:

1
defaults delete Bundle_Identifier NSRequiresAquaSystemAppearance

References

All credit goes to the following post (this is just a tl;dr :)

This post is licensed under CC BY 4.0 by the author.