{"id":26184709,"url":"https://github.com/tkuenneth/nativeparameterstoreaccess","last_synced_at":"2025-04-14T23:51:16.481Z","repository":{"id":55535102,"uuid":"323875975","full_name":"tkuenneth/nativeparameterstoreaccess","owner":"tkuenneth","description":"A small Java library to access the Windows registry, Linux dconf and macOS defaults","archived":false,"fork":false,"pushed_at":"2024-06-04T10:21:58.000Z","size":61,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T11:51:08.231Z","etag":null,"topics":["java","kotlin","library","linux","macos","windows"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"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/tkuenneth.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":"2020-12-23T10:48:58.000Z","updated_at":"2024-09-24T05:04:23.000Z","dependencies_parsed_at":"2022-08-15T02:40:57.396Z","dependency_job_id":null,"html_url":"https://github.com/tkuenneth/nativeparameterstoreaccess","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/tkuenneth%2Fnativeparameterstoreaccess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuenneth%2Fnativeparameterstoreaccess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuenneth%2Fnativeparameterstoreaccess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuenneth%2Fnativeparameterstoreaccess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkuenneth","download_url":"https://codeload.github.com/tkuenneth/nativeparameterstoreaccess/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248981259,"owners_count":21193144,"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":["java","kotlin","library","linux","macos","windows"],"created_at":"2025-03-11T23:00:04.007Z","updated_at":"2025-04-14T23:51:16.464Z","avatar_url":"https://github.com/tkuenneth.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Welcome to Native Parameter Store Acess\n\n### A small Java library to access the Windows Registry, macOS Defaults database and dconf.\n\nSometimes you need to access the Windows Registry, the macOS Defaults database or dconf in your Java or Kotlin apps.\nWhile the Java standard class library includes the Preferences api to read and write app-specific values, you cannot use\nit to access system settings. That's what this tiny library is for.\n\n#### Include in your project\n\nIt is very easy to add the library to your project.\n\n##### Maven\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.tkuenneth\u003c/groupId\u003e\n    \u003cartifactId\u003enativeparameterstoreaccess\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n##### Gradle\n\n```\ndependencies {\n  implementation(\"com.github.tkuenneth:nativeparameterstoreaccess:0.1.3\")\n}\n```\n\n#### Examples\n\nThis Kotlin example shows how to detect if the system (macOS, Linux with dconf or Windows) is using a dark theme.\n\n```kotlin\nfun isSystemInDarkTheme(): Boolean = when {\n    IS_WINDOWS -\u003e {\n        val result = WindowsRegistry.getWindowsRegistryEntry(\n                \"HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Themes\\\\Personalize\",\n                \"AppsUseLightTheme\")\n        result == 0x0\n    }\n    IS_MACOS -\u003e {\n        val result = MacOSDefaults.getDefaultsEntry(\"AppleInterfaceStyle\")\n        result == \"Dark\"\n    }\n    HAS_DCONF -\u003e {\n        val result = Dconf.getDconfEntry(\"/org/gnome/desktop/interface/gtk-theme\")\n        result.toLowerCase().contains(\"dark\")\n    }\n    else -\u003e false\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkuenneth%2Fnativeparameterstoreaccess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkuenneth%2Fnativeparameterstoreaccess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkuenneth%2Fnativeparameterstoreaccess/lists"}