Jump to content

Including Applications under ~/Library in Alfred's Default Search?


Recommended Posts

Posted (edited)

Hi! I'm running the latest Alfred 5.5 [2257] with Powerpack enabled, on the latest MacOS Sonoma 14.5, and I'm trying to get Alfred to locate and launch my Steam and Itch games. By default, both storefronts install your games under ~/Library/Application Support, specifically into ~/Library/Application Support/Steam/steamapps/common and ~/Library/Application Support/itch/apps respectively.

 

I've explicitly added those two locations to my search scope, which is otherwise just Alfred's default settings:

Screenshot2024-06-08at22_13_56.thumb.png.9c0b29267baecec36098a9de5a495874.png

 

I believe doing this used to work, although I'm unfortunately not sure which Alfred versions it worked with. On the current version, however, none of my installed games show up in Alfred's search - they're Mac .apps so I'd expect them to appear in the default application search mode, but they don't even appear in the ' file search mode.

 

I've tried running the File Search Troubleshooting tool, and it's always said "troubleshooting passed", so Alfred doesn't seem to be having any trouble finding the applications. He's just not letting me see them when I search, which is strange. Is there a configuration option I've missed here?

 

Here are some example outputs from File Search Troubleshooting. They're long and I don't seem to be able to fold them up, so I've put them at the end of the post.

Starting Diagnostics...

File: 'Brawlhalla.app'
Path: '/Users/dani/Library/Application Support/Steam/steamapps/common/Brawlhalla'

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

Check file cache database...

 File cache integrity is ok

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

Check if file is readable...

 Alfred has permissions to read this file.

Unix Permissions: 493
Underlying Type: NSFileTypeDirectory
Extended Attributes: (
    "com.apple.provenance"
)

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

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

 Indexing is enabled on this drive

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

Check direct file metadata...

 Direct metadata available

Display Name: Brawlhalla.app
 Other Names: Brawlhalla.app
Content Type: com.apple.application-bundle
   Last Used: 

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

Check mdls file metadata...

 Metadata contains required items

_kMDItemDisplayNameWithExtensions  = "Brawlhalla.app"
kMDItemAlternateNames              = (
    "Brawlhalla.app"
)
kMDItemCFBundleIdentifier          = "BrawlhallaAir"
kMDItemContentCreationDate         = 2024-03-16 11:08:36 +0000
kMDItemContentCreationDate_Ranking = 2024-03-16 00:00:00 +0000
kMDItemContentModificationDate     = 2024-03-16 11:08:36 +0000
kMDItemContentType                 = "com.apple.application-bundle"
kMDItemContentTypeTree             = (
    "com.apple.application-bundle",
    "com.apple.application",
    "public.executable",
    "com.apple.localizable-name-bundle",
    "com.apple.bundle",
    "public.directory",
    "public.item",
    "com.apple.package"
)
kMDItemCopyright                   = ""
kMDItemDateAdded                   = 2024-03-16 11:08:36 +0000
kMDItemDescription                 = ""
kMDItemDisplayName                 = "Brawlhalla.app"
kMDItemDocumentIdentifier          = 0
kMDItemExecutableArchitectures     = (
    "x86_64"
)
kMDItemFSContentChangeDate         = 2024-03-16 11:08:36 +0000
kMDItemFSCreationDate              = 2024-03-16 11:08:36 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 1
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "Brawlhalla.app"
kMDItemFSNodeCount                 = 1
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 1089068869
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2024-03-16 00:00:00 +0000
kMDItemKeywords                    = ""
kMDItemKind                        = "Application"
kMDItemLogicalSize                 = 1089068869
kMDItemPhysicalSize                = 1102258176
kMDItemSupportFileType             = (
    MDSystemFile
)
kMDItemVersion                     = "1.0"

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

Check file is in search scope...

 File exists within Alfred's default search scope

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

Check MDQuery file search...

 macOS returned a match for this file in your search scope.

File Search Results for search scope (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/Steam/steamapps/common/Brawlhalla/Brawlhalla.app"
)

File Search Results for ~/ (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/Steam/steamapps/common/Brawlhalla/Brawlhalla.app"
)

File Search Results for / (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/Steam/steamapps/common/Brawlhalla/Brawlhalla.app"
)

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

 Troubleshooting passed

 

Starting Diagnostics...

File: 'yukis4p2.app'
Path: '/Users/dani/Library/Application Support/itch/apps/yukis-4p-2'

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

Check file cache database...

 File cache integrity is ok

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

Check if file is readable...

 Alfred has permissions to read this file.

Unix Permissions: 493
Underlying Type: NSFileTypeDirectory
Extended Attributes: (
)

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

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

 Indexing is enabled on this drive

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

Check direct file metadata...

 Direct metadata available

Display Name: yukis4p2.app
 Other Names: yukis4p2.app
Content Type: com.apple.application-bundle
   Last Used: 

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

Check mdls file metadata...

 Metadata contains required items

_kMDItemDisplayNameWithExtensions  = "yukis4p2.app"
kMDItemAlternateNames              = (
    "yukis4p2.app"
)
kMDItemAppStoreCategory            = "Simulation Games"
kMDItemAppStoreCategoryType        = "public.app-category.simulation-games"
kMDItemContentCreationDate         = 2024-06-08 12:09:16 +0000
kMDItemContentCreationDate_Ranking = 2024-06-08 00:00:00 +0000
kMDItemContentModificationDate     = 2024-06-08 12:09:16 +0000
kMDItemContentType                 = "com.apple.application-bundle"
kMDItemContentTypeTree             = (
    "com.apple.application-bundle",
    "com.apple.application",
    "public.executable",
    "com.apple.localizable-name-bundle",
    "com.apple.bundle",
    "public.directory",
    "public.item",
    "com.apple.package"
)
kMDItemCopyright                   = ""
kMDItemDateAdded                   = 2024-06-08 12:09:16 +0000
kMDItemDescription                 = ""
kMDItemDisplayName                 = "yukis4p2.app"
kMDItemDocumentIdentifier          = 0
kMDItemFSContentChangeDate         = 2024-06-08 12:09:16 +0000
kMDItemFSCreationDate              = 2024-06-08 12:09:16 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 1
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "yukis4p2.app"
kMDItemFSNodeCount                 = 1
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 153867964
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2024-06-08 00:00:00 +0000
kMDItemKeywords                    = ""
kMDItemKind                        = "Application"
kMDItemLogicalSize                 = 153867964
kMDItemPhysicalSize                = 169820160
kMDItemSupportFileType             = (
    MDSystemFile
)
kMDItemVersion                     = "yukis4p2"

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

Check file is in search scope...

 File exists within Alfred's default search scope

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

Check MDQuery file search...

 macOS returned a match for this file in your search scope.

File Search Results for search scope (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/itch/apps/yukis-4p-2/yukis4p2.app"
)

File Search Results for ~/ (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/itch/apps/yukis-4p-2/yukis4p2.app"
)

File Search Results for / (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/itch/apps/yukis-4p-2/yukis4p2.app"
)

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

 Troubleshooting passed

 

Starting Diagnostics...

File: 'Inbox_MacOS_1.7.0.app'
Path: '/Users/dani/Library/Application Support/itch/apps/inbox'

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

Check file cache database...

 File cache integrity is ok

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

Check if file is readable...

 Alfred has permissions to read this file.

Unix Permissions: 493
Underlying Type: NSFileTypeDirectory
Extended Attributes: (
)

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

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

 Indexing is enabled on this drive

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

Check direct file metadata...

 Direct metadata available

Display Name: Inbox_MacOS_1.7.0.app
 Other Names: Inbox_MacOS_1.7.0.app
Content Type: com.apple.application-bundle
   Last Used: 

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

Check mdls file metadata...

 Metadata contains required items

_kMDItemDisplayNameWithExtensions  = "Inbox_MacOS_1.7.0.app"
kMDItemAlternateNames              = (
    "Inbox_MacOS_1.7.0.app"
)
kMDItemAppStoreCategory            = "Games"
kMDItemAppStoreCategoryType        = "public.app-category.games"
kMDItemCFBundleIdentifier          = "com.PremadeGames.Inbox"
kMDItemContentCreationDate         = 2024-06-08 12:09:57 +0000
kMDItemContentCreationDate_Ranking = 2024-06-08 00:00:00 +0000
kMDItemContentModificationDate     = 2024-06-08 12:09:57 +0000
kMDItemContentType                 = "com.apple.application-bundle"
kMDItemContentTypeTree             = (
    "com.apple.application-bundle",
    "com.apple.application",
    "public.executable",
    "com.apple.localizable-name-bundle",
    "com.apple.bundle",
    "public.directory",
    "public.item",
    "com.apple.package"
)
kMDItemCopyright                   = ""
kMDItemDateAdded                   = 2024-06-08 12:09:57 +0000
kMDItemDescription                 = ""
kMDItemDisplayName                 = "Inbox_MacOS_1.7.0.app"
kMDItemDocumentIdentifier          = 0
kMDItemExecutableArchitectures     = (
    "x86_64"
)
kMDItemFSContentChangeDate         = 2024-06-08 12:09:57 +0000
kMDItemFSCreationDate              = 2024-06-08 12:09:57 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 1
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "Inbox_MacOS_1.7.0.app"
kMDItemFSNodeCount                 = 1
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 115472193
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2024-06-08 00:00:00 +0000
kMDItemKeywords                    = ""
kMDItemKind                        = "Application"
kMDItemLogicalSize                 = 115472193
kMDItemPhysicalSize                = 123154432
kMDItemSupportFileType             = (
    MDSystemFile
)
kMDItemVersion                     = "1.7.0"

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

Check file is in search scope...

 File exists within Alfred's default search scope

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

Check MDQuery file search...

 macOS returned a match for this file in your search scope.

File Search Results for search scope (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/itch/apps/inbox/Inbox_MacOS_1.7.0.app"
)

File Search Results for ~/ (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/itch/apps/inbox/Inbox_MacOS_1.7.0.app"
)

File Search Results for / (
    "[0] /System/Volumes/Data/Users/dani/Library/Application Support/itch/apps/inbox/Inbox_MacOS_1.7.0.app"
)

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

 Troubleshooting passed

 

Edited by 00dani
got the meaning of a sentence backwards
Link to comment
  • 3 weeks later...

@00dani I can't speak for Itch, but when installing your Steam games, make sure you have "Create an application shortcut" checked. While Steam does install games to ~/Library/Application Support/Steam/steamapps/common, I've found game files to be wildly inconsistent in terms of how everything is bundled and named. For example, "Golf It!" has its app executable nested within several folders with the name "GolfIt-Mac-Shipping". However since I used the application shortcut, the game shows up with its proper name as an alias in the Applications folder, which Alfred will find by default.

 

Having proper app shortcuts to your games will probably offer a better experience than trying to coerce Alfred into searching the file tree of every specific game launcher on your system.

Link to comment

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...