Repository navigation
Find Android Studio installations with Spotlight query on macOS - #80475
Merged
fluttergithubbot merged 3 commits intoApr 29, 2021
Merged
Conversation
jmagman
commented
Apr 15, 2021
Member
Author
There was a problem hiding this comment.
Missed this during the null safety migration #79504
jmagman
force-pushed
the
android-studio-spotlight
branch
from
April 15, 2021 00:56
2d4f9e1 to
48cad25
Compare
This was referenced Apr 15, 2021
jmagman
force-pushed
the
android-studio-spotlight
branch
from
April 15, 2021 17:27
48cad25 to
9b657a7
Compare
jmagman
commented
Apr 15, 2021
Member
Author
There was a problem hiding this comment.
On real macOS this was failing because it's expecting an mdfind call.
jmagman
force-pushed
the
android-studio-spotlight
branch
from
April 15, 2021 23:41
9b657a7 to
5cd387d
Compare
Contributor
There was a problem hiding this comment.
does a process exception here get caught? or are we confident mdfind will be present and work?
jmagman
force-pushed
the
android-studio-spotlight
branch
from
April 28, 2021 23:43
3b41d50 to
431a5bc
Compare
This was referenced Aug 16, 2021
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In addition to hard-coded
ApplicationsAndroid Studio install locations, on macOS also query Spotlight (the app search engine when you cmd-space) for all known locations by searching with the command line toolmdfindfor the app's bundle identifier (com.google.android.studioorcom.google.android.studio-EAP).Fixes #48568
See also #80477 and #80479