-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibly a better way to set eGPU #19
Comments
Excellent find! I will consider incorporating it once I have the time. Thank you! |
Your welcome :) |
This plist doesn't exist by default? I don't see it on my work laptop. I'll check on my other macs soon. |
I used FSMonitor to see what change when it’s triggered. The process "lsd" is modifying this file every time the eGPU setting is toggled, no need to even close the Get Info window. I’m on latest Catalina 10.15.5 |
@mayankk2308 If you ever decide to optimize this script, I suggest you take a look at this PLIST file:
~/Library/Preferences/com.apple.LaunchServices/com.apple.LaunchServices.plist has a collection named "LSeGPUIsPreferred".
Opening this collection we see a list of all app bundles.
For each app bundle we have two items. "Item 1" is a number.
Prefer eGPU Selected = 3
Prefer eGPU Not Selected = 2
I think this would be the safest way to modify this via a script and also allow backing up this file if needed.
Example PLIST as XML:
The "data" field is BASE64 encoded.
The text was updated successfully, but these errors were encountered: