{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":415001618,"defaultBranch":"main","name":"SecureXPC","ownerLogin":"trilemma-dev","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-10-08T13:40:16.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/90453489?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1683707434.0","currentOid":""},"activityList":{"items":[{"before":"68529a95ea6555a82f204d8744d7af83353925b7","after":null,"ref":"refs/heads/executable-path","pushedAt":"2023-05-10T08:30:34.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"jakaplan","name":"Josh Kaplan","path":"/jakaplan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5177359?s=80&v=4"}},{"before":"c1050545168792c44984c3cc0ce2fa006c84e188","after":"1cece54562c7626d042f007d2f38cfe325565850","ref":"refs/heads/main","pushedAt":"2023-05-10T08:30:30.000Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"jakaplan","name":"Josh Kaplan","path":"/jakaplan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5177359?s=80&v=4"},"commit":{"message":"Merge pull request #132 from trilemma-dev/executable-path\n\nFixes #128 - consistently determines location of CLI or app bundle","shortMessageHtmlLink":"Merge pull request #132 from trilemma-dev/executable-path"}},{"before":null,"after":"68529a95ea6555a82f204d8744d7af83353925b7","ref":"refs/heads/executable-path","pushedAt":"2023-05-07T13:38:40.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"jakaplan","name":"Josh Kaplan","path":"/jakaplan","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5177359?s=80&v=4"},"commit":{"message":"Fixes #128 - consistently determines location of CLI or app bundle\n\nThis a rather complex fix as it turns out `Bundle.main.bundleURL` behaves differently for helper tools located within an `.app` bundle if they're located in `Contents/MacOS/` vs `Contents/Resources/`. In the case of `Contents/MacOS/` which I had previously never tested, the `bundleURL` returned is for the entire bundle while for the `Contents/Resources/` case it returns a path to `Resources`.\n\nThis by itself wouldn't be too complicated because in these cases `Bundle.main.executableURL` will return a path to itself. However it's valid for a `SMAppService` agent or daemon to _be_ an app bundle (and not just a command line tool) and we need to differentiate this situation otherwise it wouldn't be possible to identify the parent bundle.\n\nAdditionally it's valid for the case where the helper tool isn't in a bundle at all in which case `Bundle.main.executableURL` isn't applicable. As such `_NSGetExecutablePath` was used to consistently derive a path.","shortMessageHtmlLink":"Fixes #128 - consistently determines location of CLI or app bundle"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADKbMKNwA","startCursor":null,"endCursor":null}},"title":"Activity ยท trilemma-dev/SecureXPC"}