{"id":17494190,"url":"https://github.com/lkubb/dooti","last_synced_at":"2025-09-03T05:43:46.906Z","repository":{"id":48129787,"uuid":"453191893","full_name":"lkubb/dooti","owner":"lkubb","description":"Manage default handlers for files and URI schemes on macOS 12.0+.","archived":false,"fork":false,"pushed_at":"2024-10-18T13:20:50.000Z","size":127,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-21T18:06:52.588Z","etag":null,"topics":["default-handler","dotfiles","dotfiles-automation","dotfiles-macos","duti","macos","uniform-type-identifier","utility"],"latest_commit_sha":null,"homepage":"https://lkubb.github.io/dooti/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lkubb.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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":"2022-01-28T19:28:39.000Z","updated_at":"2025-06-03T13:02:00.000Z","dependencies_parsed_at":"2024-11-08T19:02:03.582Z","dependency_job_id":"20442ba8-4ae4-4138-a62e-c9266ab63288","html_url":"https://github.com/lkubb/dooti","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"1d03577e8f4a0f120698ab78fe470ad201b77914"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lkubb/dooti","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fdooti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fdooti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fdooti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fdooti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lkubb","download_url":"https://codeload.github.com/lkubb/dooti/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lkubb%2Fdooti/sbom","scorecard":{"id":595216,"data":{"date":"2025-08-11","repo":{"name":"github.com/lkubb/dooti","commit":"13f08316723d0bd87c94313123020f1a7911718b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":6,"reason":"dependency not pinned by hash detected -- score normalized to 6","details":["Info: Possibly incomplete results: error parsing job operating system: .github/workflows/test-action.yml:23","Info: Possibly incomplete results: error parsing job operating system: .github/workflows/test-action.yml:28","Info: Possibly incomplete results: error parsing job operating system: .github/workflows/test-action.yml:32","Info: Possibly incomplete results: error parsing job operating system: .github/workflows/test-action.yml:38","Warn: pipCommand not pinned by hash: .github/workflows/docs-action.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/docs-action.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/package-action.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/pre-commit-action.yml:27","Warn: pipCommand not pinned by hash: .github/workflows/pre-commit-action.yml:28","Info:  21 out of  21 GitHub-owned GitHubAction dependencies pinned","Info:   5 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/get-changed-files.yml:14","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/get-changed-files.yml:15","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/pr.yml:22","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/pr.yml:19","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/tag.yml:30","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/tag.yml:33","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy-docs-action.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy-package-action.yml:1","Warn: no topLevel permission defined: .github/workflows/docs-action.yml:1","Warn: no topLevel permission defined: .github/workflows/get-changed-files.yml:1","Warn: no topLevel permission defined: .github/workflows/package-action.yml:1","Warn: no topLevel permission defined: .github/workflows/pr.yml:1","Warn: no topLevel permission defined: .github/workflows/pre-commit-action.yml:1","Warn: no topLevel permission defined: .github/workflows/tag.yml:1","Warn: no topLevel permission defined: .github/workflows/test-action.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.2.2 not signed: https://api.github.com/repos/lkubb/dooti/releases/180660953","Warn: release artifact v0.2.2 does not have provenance: https://api.github.com/repos/lkubb/dooti/releases/180660953"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T22:59:40.088Z","repository_id":48129787,"created_at":"2025-08-20T22:59:40.088Z","updated_at":"2025-08-20T22:59:40.088Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273397843,"owners_count":25098234,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["default-handler","dotfiles","dotfiles-automation","dotfiles-macos","duti","macos","uniform-type-identifier","utility"],"created_at":"2024-10-19T13:05:32.446Z","updated_at":"2025-09-03T05:43:46.878Z","avatar_url":"https://github.com/lkubb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==============\nDooti overview\n==============\n\nManage default handlers for files and URI schemes on MacOS 12.0+.\n\n\nFeatures\n--------\n* Manage handlers by specifying file extension, UTI or URI scheme.\n* Specify handlers by name, bundle ID or absolute path.\n* Check your associations into a dotfiles repository and ensure an idempotent state by simply running ``dooti apply``.\n\n\nInstallation\n------------\nI recommend installing with `pipx \u003chttps://pipx.pypa.io/stable/\u003e`_, although pip will work fine as well:\n\n.. code-block:: bash\n\n        pipx install dooti\n\n\nQuickstart\n----------\n``dooti`` currently supports three specific subcommands (``ext``, ``scheme``, ``uti``) and a broad one (``apply``).\n\nLookup handlers\n~~~~~~~~~~~~~~~\nSimply pass a list of one specific type to the appropriate command. Example:\n\n.. code-block:: console\n\n    $ dooti ext html xml\n    html: /Applications/Firefox.app\n    xml: /Applications/Sublime Text.app\n\n    $ dooti --format json scheme http https ftp | jq\n    {\n      \"http\": \"/Applications/Firefox.app\",\n      \"https\": \"/Applications/Firefox.app\",\n      \"ftp\": \"/System/Library/CoreServices/Finder.app\"\n    }\n\n    $ dooti uti public.html\n    public.html: /Applications/Firefox.app\n\nSet handlers\n~~~~~~~~~~~~\nChanging the default handler can be requested by adding ``-x \u003chandler_ref\u003e`` to the lookup command. The handler reference can be a name, bundle ID or absolute filesystem path. Example:\n\n.. code-block:: console\n\n    $ dooti ext csv xml -x \"Sublime Text\"\n    The following extensions are set to be changed:\n    csv: /Applications/Numbers.app -\u003e /Applications/Sublime Text.app\n    xml: /Applications/Firefox.app -\u003e /Applications/Sublime Text.app\n\n    $ dooti scheme ftp -x /Applications/Firefox.app\n    The following scheme is set to be changed:\n    ftp: /System/Library/CoreServices/Finder.app -\u003e /Applications/Firefox.app\n\n    $ dooti -tf json uti public.c-source -x com.sublimetext.4\n    {\"changes\": {\"utis\": {\"public.c-source\": {\"from\": \"/Applications/Notes.app\", \"to\": \"/Applications/Sublime Text.app\"}}}, \"errors\": []}\n\n\nEnsure state\n~~~~~~~~~~~~\n``dooti`` can ingest and apply a YAML configuration like this:\n\n.. code-block:: yaml\n\n    ext:\n      jpeg: Preview\n\n    scheme:\n      http: Firefox\n      mailto: Mail\n\n    uti:\n      public.c‑source: Sublime Text\n\n    app:\n      Sublime Text:\n        ext:\n          - py\n          - rst\n          - yml\n          - yaml\n        uti:\n          - public.fortran‑source\n\n      Brave Browser:\n        scheme:\n          - ipfs\n\nBy default, it looks at ``$XDG_CONFIG_HOME/dooti/config.yaml`` (and others, see ``docs/usage.rst``).\n\nLimitations\n-----------\n* The designated handler has to be installed before running the command.\n* Setting some URI scheme handlers (especially for http) might cause a prompt.\n* Setting some file extension handlers might be restricted (especially html seems to fail silently).\n\n\nWhy?\n----\nMost existing tools use `LSSetDefaultRoleHandlerForContentType \u003chttps://developer.apple.com/documentation/coreservices/1444955-lssetdefaultrolehandlerforconten\u003e`_ and `LSSetDefaultHandlerForURLScheme \u003chttps://developer.apple.com/documentation/coreservices/1447760-lssetdefaulthandlerforurlscheme?language=objc\u003e`_, which are deprecated in macOS 12.0. ``dooti`` uses a more recent API and should work on Monterey (12.0) and above.\n\n\nSimilar tools\n-------------\n* `duti \u003chttps://github.com/moretension/duti\u003e`_\n* `openwith \u003chttps://github.com/jdek/openwith\u003e`_\n* `defaultbrowser \u003chttps://gist.github.com/miketaylr/5969656\u003e`_\n* `SwiftDefaultApps \u003chttps://github.com/Lord-Kamina/SwiftDefaultApps\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkubb%2Fdooti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flkubb%2Fdooti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flkubb%2Fdooti/lists"}