jwbargsten / defbro Goto Github PK
View Code? Open in Web Editor NEWChange the default browser in macOS (Catalina, Big Sur).
Home Page: https://bargsten.org/wissen/publish-swift-app-via-homebrew/
License: MIT License
Change the default browser in macOS (Catalina, Big Sur).
Home Page: https://bargsten.org/wissen/publish-swift-app-via-homebrew/
License: MIT License
When installing defbro
via brew install jwbargsten/misc/defbro
, I get the following error message:
…
Tapped 1 formula (16 files, 14.1KB).
defbro: A full installation of Xcode.app >= 11.2 is required to compile
this software. Installing just the Command Line Tools is not sufficient.
Xcode can be installed from the App Store.
Error: defbro: An unsatisfied requirement failed this build.
Is there really a full install of Xcode necessary or would the cli tools also be enough?
How do we prevent the following macOS prompt to change browser?
Are we really doomed to use an applescript like in https://www.felixparadis.com/posts/how-to-set-the-default-browser-from-the-command-line-on-a-mac/#automatically-accept-the-prompt-with-applescript?
warning: 'defbro-0.0.1': failed loading cached manifest for 'defbro-0.0.1': Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/user_name/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x6000013b4990 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}} warning: 'defbro-0.0.1': failed closing cache: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “manifests” in the folder “org.swift.swiftpm”." UserInfo={NSFilePath=/Users/user_name/Library/Caches/org.swift.swiftpm/manifests, NSUnderlyingError=0x6000013bfc30 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}} error: 'defbro-0.0.1': Invalid manifest /private/tmp/defbro-20230117-12819-gal0kl/defbro-0.0.1/Package.swift:4:8: error: no such module 'PackageDescription' import PackageDescription
MacOS Ventura 13.1
M1 Pro
I noticed this package builds with --disable-sandbox
flag.
Not 100% familiar with Swift, but is this flag strictly necessary for the script to run? Felt like an unnecessary security risk, so I unfortunately uninstalled defbro
right after installing.
Can you elaborate on why you need it? :) Looks like a really useful tool for someone who changes (default) browser frequently 🙌
hi @jwbargsten
thanks for this handy tool
much better than what I used so far
(py37) √ main % alias
dgc='open -a "Google Chrome" --args --make-default-browser'
dme='open -a "Microsoft Edge" --args --make-default-browser'
can you add this as feature?
so I set the current profile too?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.