mfisher 0 Posted February 14 Share Posted February 14 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! Link to post
vitor 879 Posted February 14 Share Posted February 14 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
Andrew 823 Posted February 15 Share Posted February 15 @vitor should /usr/local/Cellar remain, or be removed too? Link to post
deanishe 1,405 Posted February 15 Share Posted February 15 10 hours ago, vitor said: And I agree /opt/homebrew/Cellar makes sense to add. It’s in /opt, not /usr/local/opt? Link to post
vitor 879 Posted February 15 Share Posted February 15 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. deanishe 1 Link to post
mfisher 0 Posted February 20 Author Share Posted February 20 (edited) 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 February 21 by mfisher Link to post
deanishe 1,405 Posted February 20 Share Posted February 20 2 hours ago, mfisher said: Are there any clever ways to force indexing on a path? Have you tried mdimport? Link to post
mfisher 0 Posted February 21 Author Share Posted February 21 20 hours ago, deanishe said: Have you tried mdimport? I did: sudo chflags nohidden /opt mdimport /opt The Alfred troubleshooting output didn't change. Thanks! Link to post
mfisher 0 Posted February 21 Author Share Posted February 21 56 minutes ago, deanishe said: I'm out of ideas, I'm afraid Thanks so much for sharing your ideas! Link to post
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now