Jump to content

Alfred not finding Homebrew apps on M1 (/opt/homebrew)


Recommended Posts

Hi!

 

I install Emacs from Homebrew. For years, Alfred has been able to find it. On the new M1 Macs, the Homebrew (v3) location is in /opt/homebrew.

 

Here's my Emacs.app:

% ls -lA /opt/homebrew/Cellar/emacs-plus@28/28.0.50| grep Emacs
drwxr-xr-x  3 mfisher  staff     96 Feb 14 11:51 Emacs.app

 

Per the recipe instructions, I did:

To link the application to default Homebrew App location:
  ln -s /opt/homebrew/opt/emacs-plus@28/Emacs.app /Applications

 

I added `/opt/homebrew/Cellar` into my Alfred search scope. But when I activate Alfred and type "emacs", Alfred doesn't find it.

 

Alfred v4.3.2 [1220]

macOS Version 11.3 Beta (20E5172i)

 

Thanks!

 

Alfred Preferences.jpg

Link to post

I went to take a look and noticed /opt/homebrew-cask/Caskroom is part of the defaults. That no longer makes sense, @Andrew, as anyone with their Caskroom on that location has a really old and unsupported installation which I doubt even works. And I agree /opt/homebrew/Cellar makes sense to add.

 

@mfisher Does Spotlight find that Emacs? Alfred depends on it.

Link to post
3 hours ago, Andrew said:

should /usr/local/Cellar remain, or be removed too?


Remain. That continues to be the default location on Intel processors, the new location is for ARM. Both can be installed at the same time.

 

2 hours ago, deanishe said:

It’s in /opt, not /usr/local/opt?


Correct.

Link to post
On 2/14/2021 at 6:52 PM, vitor said:

 

@mfisher Does Spotlight find that Emacs? Alfred depends on it.

 

@vitor It does not. Are there any clever ways to force indexing on a path? I tried Apple's procedure to rebuild a Spotlight index for /opt.

 

For the time being, I made a workflow to launch Emacs, so I am content again.

 

Thanks!

 

 

Starting Diagnostics...

File: 'Emacs.app'
Path: '/Applications'

-----------------------------------------------------------

Check file cache database...

File cache integrity is ok

-----------------------------------------------------------

Check if file is readable...

Alfred has permissions to read this file.

-----------------------------------------------------------

Check if volume '/' is indexed by macOS...

Indexing is enabled on this drive

-----------------------------------------------------------

Check direct file metadata...

Direct metadata available

Display Name: Emacs.app
 Other Names: 
Content Type: com.apple.application-bundle
   Last Used: 2021-02-14 16:51:11 +0000

-----------------------------------------------------------

Check mdls file metadata...

macOS metadata missing essential items

kMDItemFSContentChangeDate = 2021-02-14 16:51:11 +0000
kMDItemFSCreationDate      = 2021-01-10 01:11:39 +0000
kMDItemFSCreatorCode       = ""
kMDItemFSFinderFlags       = 0
kMDItemFSHasCustomIcon     = 0
kMDItemFSInvisible         = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery      = 0
kMDItemFSLabel             = 0
kMDItemFSName              = "Emacs.app"
kMDItemFSNodeCount         = 1
kMDItemFSOwnerGroupID      = 20
kMDItemFSOwnerUserID       = 501
kMDItemFSSize              = 1
kMDItemFSTypeCode          = ""

-----------------------------------------------------------

Troubleshooting failed
 

Edited by mfisher
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...