NewsjunkieSign in
  • All items
  • Explore

Sign in to follow sources.

ianh30 Oct 2025

this is actually kinda a brilliant idea for detecting whether your software is being run in a "hostile environment" (though is it really possible to restrict the places software can be legally run via a license like this?)

lgug2z.com
Normalize Identifying Corporate Devices in Your Software
If you dual-license your software in such a way that it requires a paid license for commercial use, here are two code blobs for you. macOS pub fn mdm_enrollment() -> eyre::Result<(bool, Option<String>)> { let mut command = Command::new("/usr/bin/profiles"); command.args(["status", "-type", "enrollment"]); let stdout = command.output()?.stdout; let output = std::str::from_utf8(&stdout)?; if output.contains("MDM enrollment: No") { return Ok((false, None)); } let mut server = None; for line in out…
mastodon.social ↗

Sign in to like, save or reply.