Kind likes

 Like

Liked Normalize Identifying Corporate Devices in Your Software
Post details
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 output.lines() { if line.starts_with("MDM server") { server = Some(line.trim_start_matches("MDM server: ").to_string()) } } Ok((true, server)) } Windows pub fn mdm_enrollment() -> eyre::Result<(bool, Option<String>)> { let mut command = Command::new("dsregcmd"); command.args(["/status"]); let stdout = command.output()?.stdout; let output = std::str::from_utf8(&stdout)?; if !output.contains("MdmUrl") { return Ok((false, None)); } let mut server = None; for line in output.lines() { if line.contains("MdmUrl") { let line = line.trim().to_string(); server = Some(line.trim_start_matches("MdmUrl : ").to_string()) } } Ok((true, server)) } Looking at mobile device management (MDM) enrollment is not a silver bullet for identifying corporate devices running your software, but it is a good start.

 Like

Liked Hazel Weakly (@hazelweakly.me)
Post details
This is why I have a website. It’s also why everything I’ve ever written has appeared on my website with *very* few exceptions Having a single domain name that’s YOU is invaluable. My website gets lots of compliments on its branding and appearance. My slides borrow that appearance, too It matters! [contains quote post or other embedded content]

 Like

Liked JP (@byjp.me)
Post details
@tangled.org have you seen git-bug? (https://github.com/git-bug/git-bug) it’d be pretty damned nifty if tangled’s issues were stored & accessible in a git-bug compatible way, for even more decentralisation in the most decentralised app for decentralised VCS!