{"id":19808485,"url":"https://github.com/omajid/xdg-java","last_synced_at":"2025-05-01T07:32:29.457Z","repository":{"id":10243855,"uuid":"12348966","full_name":"omajid/xdg-java","owner":"omajid","description":"Java bindings for various FreeDesktop.org standards","archived":false,"fork":false,"pushed_at":"2019-04-28T18:22:14.000Z","size":37,"stargazers_count":12,"open_issues_count":4,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-03-10T22:13:48.049Z","etag":null,"topics":["freedesktop","java","xdg"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omajid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-24T19:54:28.000Z","updated_at":"2022-11-22T17:17:36.000Z","dependencies_parsed_at":"2022-08-20T13:31:21.769Z","dependency_job_id":null,"html_url":"https://github.com/omajid/xdg-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omajid%2Fxdg-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omajid%2Fxdg-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omajid%2Fxdg-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omajid%2Fxdg-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omajid","download_url":"https://codeload.github.com/omajid/xdg-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224245886,"owners_count":17279649,"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":["freedesktop","java","xdg"],"created_at":"2024-11-12T09:13:59.537Z","updated_at":"2024-11-12T09:13:59.651Z","avatar_url":"https://github.com/omajid.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"`xdg-java`\n==========\n\nThis is a Java API that provides an easy to use implementations of\nvarious\n[Free Desktop specifications](https://www.freedesktop.org/wiki/Specifications/).\nUse the correct application specific configuration, data and cache\ndirectories. Safely read and write desktop entries without worrying\nabout parsing and escaping.\n\nSpecifications\n--------------\n\nThe following specifications are currently implemented:\n\n### [Base Directory Specification](https://www.freedesktop.org/wiki/Specifications/basedir-spec/)\n\nUse this to access standard directories for data, cache and\nconfiguration.\n\nHere's how to find the path to a cache file with the name `myCache`:\n\n    File cacheFile = new File(BaseDirectory.get(BaseDirectory.XDG_CACHE_HOME), \"myCache\");\n\n    \n### The [Desktop Entry Specification](http://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/)\n\nUse this to read and write desktop entries, with full validation.\n\nHere's how to read a desktop entry named `some.desktop`:\n\n    BufferedReader reader = new BufferedReader(new FileReader(\"some.desktop\"));\n    DesktopEntry entry = new DesktopEntryReader(reader).read();\n    System.out.println(\"Name: \" + entry.get(DesktopEntry.KEY_NAME));\n\n\nInstall\n-------\n\nBuild and install using maven:\n\n    $ mvn clean install\n\n\nIf you are using maven, add a dependency to your `pom.xml` file:\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003eorg.freedesktop\u003c/groupId\u003e\n      \u003cartifactId\u003exdg-java\u003c/artifactId\u003e\n      \u003cversion\u003e0.0.1-SNAPSHOT\u003c/version\u003e\n    \u003c/dependency\u003e\n\nIf you are using gradle, add a runtime dependency to your\n`build.gradle` file:\n\n    runtime \"org.freedesktop:xdg-java:0.0.1-SNAPSHOT@jar\"\n\nFor Ivy, add the following dependency to your `ivy.xml` file:\n\n    \u003cdependency org=\"org.freedesktop\" name=\"xdg-java\" rev=\"0.0.1-SNAPSHOT\"/\u003e\n\n\nContributing\n------------\nSee `CONTRIBUTING.md` for details.\n\n\nLicense\n-------\n\nLGPL v2. Please see the `LICENSE` file for details.\n\n© Copyright Omair Majid\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomajid%2Fxdg-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomajid%2Fxdg-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomajid%2Fxdg-java/lists"}