Skip to content

glassbox 0.3.0

Choose a tag to compare

@jacob-adm jacob-adm released this 20 Nov 05:08
· 42 commits to main since this release
20a54d6

Changes

glassbox 0.3.0 extends persist on macOS to login items and background services that apps register for themselves.

  • App-bundled background services. On macOS 13 and later, apps register launchd helpers through the Service Management framework. Their plists live inside the app bundle, not in ~/Library/LaunchAgents or /Library/LaunchDaemons. persist now hashes Contents/Library/LaunchAgents and Contents/Library/LaunchDaemons in every app bundle in /Applications and ~/Applications.
  • Login-item helpers. Each helper app in a bundle's Contents/Library/LoginItems is watched through its Contents/Info.plist.
  • Background Task Management database. macOS rewrites this database when a login item or background service is registered, approved or removed. persist compares it as a whole; run sfltool dumpbtm (administrator) to see which item changed.
  • Symlinked app bundles are not followed. Linux is unchanged.

Install

With Homebrew:

brew install jacob-adm/tap/glassbox

Or download the archive for your platform, check it, and put glassbox on your PATH:

shasum -a 256 -c SHA256SUMS --ignore-missing
tar -xzf glassbox-0.3.0-<platform>.tar.gz
Platform Archive
macOS, Apple silicon glassbox-0.3.0-aarch64-apple-darwin.tar.gz
Linux x86-64 (glibc 2.31 or later) glassbox-0.3.0-x86_64-unknown-linux-gnu.tar.gz
Linux ARM64 (glibc 2.31 or later) glassbox-0.3.0-aarch64-unknown-linux-gnu.tar.gz

The macOS binary is not notarized. If it was downloaded with a browser, clear the quarantine flag with xattr -d com.apple.quarantine glassbox, or build from source with cargo install --git https://github.com/jacob-adm/glassbox --tag v0.3.0.

Not on crates.io yet.