Closed crawfxrd closed 4 years ago
Don't want to make this too complicated, but is there a reason not to check for both? Is X-KDE-RunOnDiscreteGpu deprecated?
PrefersNonDefaultGPU
is the standardized name for X-KDE-RunOnDiscreteGpu
. GNOME is implementing the feature only after having the entry added to the XDG spec, so they have no reason to check for the KDE-specific name.
Applications used across multiple desktop environments should probably check for both. Such as what Bastien did in xdg/desktop-file-utils!7.
They've decided to use "Integrated" for the user visible text ("Default" too similar to "Dedicated"), so I've changed it back to that.
Updated to preserve the signature of shell_app_launch()
from GNOME 3.36 so extensions can use it without breaking.
fd.o has accepted the name
PrefersNonDefaultGPU
[1] and Bastien is working on integrating it into gnome-shell [2].PrefersNonDefaultGPU
instead ofX-KDE-RunOnDiscreteGpu
shell_app_launch()
signature for extensions (Resolves: #26)