DefaultBrowser icon indicating copy to clipboard operation
DefaultBrowser copied to clipboard

Browsers created with "Add to Dock..." are not listed

Open gingerbeardman opened this issue 10 months ago • 5 comments
trafficstars

I notice that site-specific browsers I created with Safari's "Add to Dock..." feature qualify as browsers to open URLs in, but they are not listed in the app

I only started using such site-specific browsers recently

gingerbeardman avatar Jan 11 '25 16:01 gingerbeardman

Can you clarify what "qualify as browsers to open URLs in"? I'm not seeing that myself, so I'm missing something.

apexskier avatar May 06 '25 22:05 apexskier

Sure!

  1. Go to Wikipedia.
  2. Safari > File > Add to Dock...
  3. Open and close the new Wikipedia site app to make sure you're familiar with it

Next

  1. Click any link to Wikipedia link
  2. It will open in the new site app rather than Safari

Also

  1. If you go to any Wikipedia website in Safari (like using Open in new tab, or pasting a URL) then that page will have a bar across the top allowing you to open in the site app

Image

gingerbeardman avatar May 07 '25 14:05 gingerbeardman

I see, looks like it didn't register immediately for me the first time I tried.

apexskier avatar May 07 '25 17:05 apexskier

There are some interesting things in those application bundles which make me think this could be possible. They're basically just an Info.plist, icon, and code signing stuff. The Info.plist does register the app as capable as opening the scheme x-webkit-app-launch, but querying for apps that handle that didn't work at first try (possibly because LSHandlerRank is none?). They also have a common com.apple.Safari.WebApp.{UUID} bundle ID, which I might be able to search by. They also appear to be marked as LSTemplateApplication, and opened by the system app com.apple.Safari.WebApp, which I might be able to mess with.

apexskier avatar May 07 '25 17:05 apexskier

Sounds promising!

gingerbeardman avatar May 07 '25 21:05 gingerbeardman