I'm developing an application and on one machine with Retina display I have a few problems regarding resolution. To debug it I want to have resolution and dpi settings, so, where can I find a configuration file with these settings?
I don't know how to see the pixel densities of displays, but the resolutions are stored in
~/Library/Preferences/ByHost/com.apple.windowserver*.plist. If you have multiple displays, it doesn't tell which display set is active or which is the main display though.
system_profiler SPDisplaysDataType only includes the currently active displays.