{"id":22427557,"url":"https://github.com/inket/startatlogin","last_synced_at":"2025-08-01T10:32:09.604Z","repository":{"id":64060187,"uuid":"76171217","full_name":"inket/StartAtLogin","owner":"inket","description":"Swifty Start at Login for macOS apps","archived":false,"fork":false,"pushed_at":"2023-07-08T06:32:42.000Z","size":25,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T07:20:08.561Z","etag":null,"topics":["carthage","framework","macos","start-at-login","swift"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/inket.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}},"created_at":"2016-12-11T11:51:31.000Z","updated_at":"2024-09-27T12:59:09.000Z","dependencies_parsed_at":"2023-01-14T20:30:44.701Z","dependency_job_id":null,"html_url":"https://github.com/inket/StartAtLogin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inket%2FStartAtLogin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inket%2FStartAtLogin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inket%2FStartAtLogin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inket%2FStartAtLogin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inket","download_url":"https://codeload.github.com/inket/StartAtLogin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228364027,"owners_count":17908319,"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":["carthage","framework","macos","start-at-login","swift"],"created_at":"2024-12-05T20:12:17.544Z","updated_at":"2024-12-05T20:12:18.026Z","avatar_url":"https://github.com/inket.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## StartAtLogin ![](https://img.shields.io/badge/Carthage-supported-brightgreen.svg)\n\nStartAtLogin is a framework for Swift macOS apps looking to add a \"Start at Login\" feature with minimal work.\n\nCurrent solutions require a significant amount of steps to implement, with lots of variables and frequently imprecise instructions. StartAtLogin gets rid of that:\n\n\u003cimg src=\"https://i.imgur.com/k48qkTx.jpg\" width=\"520\" height=\"203\" /\u003e\n\nStartAtLogin is App Store-approved and is currently being used in the app [stts](https://itunes.apple.com/app/stts/id1187772509?ls=1\u0026mt=12)\n\n### Usage\n\nAdd StartAtLogin via Carthage:\n\n__Cartfile__\n```\ngithub \"inket/StartAtLogin\"\n```\n\nAdd a new build phase \"Run Script Phase\" to your app, with the following script:\n\n```sh\nFRAMEWORKS_HELPER_PATH=\"$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/StartAtLogin.framework/Versions/A/Resources/StartAtLoginHelper.app\"\nHELPER_DIR=\"$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Library/LoginItems\"\nHELPER_PATH=\"$HELPER_DIR/StartAtLoginHelper.app\"\n\nmkdir -p \"$HELPER_DIR\"\nrm -rf \"$HELPER_PATH\"\ncp -rf \"$FRAMEWORKS_HELPER_PATH\" \"$HELPER_DIR/\"\n\nif [ \"$CONFIGURATION\" == \"Release\" ]; then\n  rm -rf \"$FRAMEWORKS_HELPER_PATH\"\nfi\n\ndefaults write \"$HELPER_PATH/Contents/Info\" CFBundleIdentifier -string \"$PRODUCT_BUNDLE_IDENTIFIER-StartAtLoginHelper\"\ncodesign --force --entitlements \"$CODE_SIGN_ENTITLEMENTS\" -s \"$EXPANDED_CODE_SIGN_IDENTITY_NAME\" -v \"$HELPER_PATH\"\n```\n\nUse StartAtLogin in your app:\n\n```swift\nimport StartAtLogin\n\n// Enable\nStartAtLogin.enabled = true\n\n// Disable\nStartAtLogin.enabled = false\n\n// Check status\ndebugPrint(StartAtLogin.enabled)\n```\n\n#### Contact\n\n[@inket](https://github.com/inket) / [@inket](https://twitter.com/inket) on Twitter / [mahdi.jp](https://mahdi.jp)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finket%2Fstartatlogin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finket%2Fstartatlogin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finket%2Fstartatlogin/lists"}