Disable MacOS X dark mode for specific application

Intro

I use some KDE applications on my Macbook Pro.
And some of them looks very bad with MacOS X dark mode.
So I would like to disable dark mode for those specific applications.

Howto

First I need to find out a Bundle identifier of the application.

$ sudo find / -iname kmymoney.app 2>&1 | grep -v "Operation not permitted"
/usr/local/Cellar/kmymoney/5.0.6_1/bin/kmymoney.app
$ cd /usr/local/Cellar/kmymoney/5.0.6_1/bin/kmymoney.app/Contents/
$ $ cat Info.plist |grep -A 1 CFBundleIdentifier
	<key>CFBundleIdentifier</key>
	<string>org.kde.KMyMoney</string>

so bundle identifier is org.kde.KMyMoney

Then let’s disable dark mode for KMyMoney:

defaults write org.kde.KMyMoney NSRequiresAquaSystemAppearance -bool yes

if we would need to enable it back - we would need to execute:

defaults write org.kde.KMyMoney NSRequiresAquaSystemAppearance

References

 Share!

 
comments powered by Disqus