vgalin / html2image

A package acting as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files.
MIT License
354 stars 43 forks source link

Add util to search for macOS app executable #101

Open relikd opened 1 year ago

relikd commented 1 year ago

This tries a few different methods to get the application bundle path (*.app). Should be generic enough to reuse for other browsers, e.g. for Firefox get_bundle_path_darwin("org.mozilla.firefox", "Firefox.app"). The additional logic for Chrome (defaults read) only applies to Chrome though.