{"id":19521880,"url":"https://github.com/inochi2d/dportals","last_synced_at":"2025-10-04T04:19:19.659Z","repository":{"id":114246476,"uuid":"543426374","full_name":"Inochi2D/dportals","owner":"Inochi2D","description":"D implementation of xdg-desktop-portals","archived":false,"fork":false,"pushed_at":"2022-10-01T13:40:41.000Z","size":10,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T14:12:14.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inochi2D.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-30T04:17:33.000Z","updated_at":"2023-05-09T06:24:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"61b38735-a243-481d-a517-69fc9a9bdcac","html_url":"https://github.com/Inochi2D/dportals","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fdportals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fdportals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fdportals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inochi2D%2Fdportals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inochi2D","download_url":"https://codeload.github.com/Inochi2D/dportals/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240771907,"owners_count":19854982,"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":[],"created_at":"2024-11-11T00:35:34.263Z","updated_at":"2025-10-04T04:19:19.562Z","avatar_url":"https://github.com/Inochi2D.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xdg-desktop-portal for D\nThis D library allows you to interface with XDG Desktop Portals when\nyou aren't using GTK or Qt.\n\n\n\n## Example\n```d\nmodule app;\nimport dportals;\nimport std.stdio;\n\nvoid main() {\n    \n    // Initialize Desktop Portals support\n    // This will live for the *entire* application lifetime.\n    dpInit();\n\n    // Open a File Open Dialog with some options set.\n    // A Promise type is returned which you can await.\n    // If you want your application to be non-blocking\n    // you will have to continually call dpUpdate\n    // then check the success value of the response\n    // before getting the value.\n    auto promise = dpFileChooserOpenFile(\n        \"\", \n        \"Open File\", \n\n        // See FileOpenOptions for API\n        FileOpenOptions(\n            \"\",\n            \"UwU\",\n            false,\n            true,\n            false,\n            [FileFilter(\"PNG\", [FileFilterItem(0, \"*.png\")])],\n            new FileFilter(\"PNG\", [FileFilterItem(0, \"*.png\")]),\n            [FileChoice(\"mangle\", \"Mangle File\", [], \"\")]\n        )\n    );\n\n    // Await the response.\n    // This will continually in a loop call dpUpdate\n    // until the dialog closes for some reason.\n    promise.await();\n\n    // Print useful info about selected file\n    write(promise.success(), \" \");\n    if (promise.success) write(promise.value());\n    else write(\"null\");\n    write(\"\\n\");\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finochi2d%2Fdportals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finochi2d%2Fdportals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finochi2d%2Fdportals/lists"}