conda / menuinst

Cross platform menu item installation
https://conda.github.io/menuinst/
BSD 3-Clause "New" or "Revised" License
33 stars 41 forks source link

Add support for NSSupportsAutomaticGraphicsSwitching #194

Closed marcoesters closed 1 month ago

marcoesters commented 2 months ago

Description

Some MacBooks have two GPUs, a discrete and an integrated GPU. While the former is more powerful, it also consumes more power. By default, the discrete GPU is used.

To allow apps using OpenGL to use the integrated GPU and be more energy-efficient, the NSSupportsAutomaticGraphicsSwitching needs to be set to true.

menuinst currently does not support this flag - this PR adds this property to the schema.

Checklist - did you ...

jaimergp commented 2 months ago

Thanks! Can we add a link to the NS* keys documentation in line 180? This will have to be added to the CEP schema, either via a new CEP or a small edit because the change is not too drastic.

marcoesters commented 2 months ago

Thanks! Can we add a link to the NS* keys documentation in line 180? This will have to be added to the CEP schema, either via a new CEP or a small edit because the change is not too drastic.

The NS* keys do not have a neat list like the CF* and LS* keys - or at least, I haven't been able to find them. In fact, some NS* keys are part of the CF*documentation (not this key though).