{"id":17689188,"url":"https://github.com/geoffrepoli/logind","last_synced_at":"2025-05-13T00:48:53.349Z","repository":{"id":85356828,"uuid":"99959806","full_name":"geoffrepoli/logind","owner":"geoffrepoli","description":"login-aware launch daemon","archived":false,"fork":false,"pushed_at":"2021-12-19T13:53:13.000Z","size":10,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T00:48:48.776Z","etag":null,"topics":["apple","jamf","jamf-pro","macadmins","macos","macosx","osx"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geoffrepoli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-10T19:52:50.000Z","updated_at":"2021-12-23T17:54:25.000Z","dependencies_parsed_at":"2023-03-11T13:30:49.463Z","dependency_job_id":null,"html_url":"https://github.com/geoffrepoli/logind","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffrepoli%2Flogind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffrepoli%2Flogind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffrepoli%2Flogind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffrepoli%2Flogind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geoffrepoli","download_url":"https://codeload.github.com/geoffrepoli/logind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850882,"owners_count":21973672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","jamf","jamf-pro","macadmins","macos","macosx","osx"],"created_at":"2024-10-24T11:46:48.245Z","updated_at":"2025-05-13T00:48:53.329Z","avatar_url":"https://github.com/geoffrepoli.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logind\n\nMac admins often have login workflows that require both (a) root permissions and (b) a user to be logged in (console user). While loginhooks used to serve this purpose, they've since been deprecated. Launch agents, on the other hand, satisfy (b) but not (a). **logind** attempts to solve the issue by using a launch daemon to check if a user is logged in before running your workflow.\n\n## Getting Started\n\nDownload or clone the repository:\n\n```\ngit clone https://github.com/geoffrepoli/logind.git\n```\n\nReplace the contents of `loginItems()` in [run.sh](run.sh) with the command(s) you want to execute at user login.\n\n## Deployment\n\nOnce you've added your login tasks to `run.sh`, use the `build.sh` script to automatically configure a deployable pkg installer. In Terminal, enter the following:\n\n```\ncd logind \u0026\u0026 ./build.sh\n```\n\nAn installer package `logind.pkg` will be created in the root of your logind directory, which you can then use to deploy to end users via MDM or other management tool.\n\nIf you intend to build the package installer yourself, make sure you've created the correct file paths in your package root. For reference: the default paths are `/Library/LaunchDaemons/com.doggles.logind.plist` and `/usr/local/logind/run.sh`.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoffrepoli%2Flogind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeoffrepoli%2Flogind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoffrepoli%2Flogind/lists"}