{"id":20898089,"url":"https://github.com/energye/systray","last_synced_at":"2026-01-31T11:05:49.077Z","repository":{"id":65339022,"uuid":"589788352","full_name":"energye/systray","owner":"energye","description":"Support for Windows, Linux, and MacOSX system trays","archived":false,"fork":false,"pushed_at":"2025-07-30T14:01:32.000Z","size":62,"stargazers_count":130,"open_issues_count":3,"forks_count":24,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-30T16:42:52.637Z","etag":null,"topics":["linux","linux-systray","macosx","macosx-systray","systray","windows","windows-systray"],"latest_commit_sha":null,"homepage":"https://github.com/energye/systray","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/energye.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-16T23:49:55.000Z","updated_at":"2025-07-30T14:01:36.000Z","dependencies_parsed_at":"2024-01-23T17:15:39.693Z","dependency_job_id":"65113d90-9c15-4fbd-b34b-acf58a96b831","html_url":"https://github.com/energye/systray","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/energye/systray","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energye%2Fsystray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energye%2Fsystray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energye%2Fsystray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energye%2Fsystray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/energye","download_url":"https://codeload.github.com/energye/systray/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/energye%2Fsystray/sbom","scorecard":{"id":377087,"data":{"date":"2025-08-11","repo":{"name":"github.com/energye/systray","commit":"cf9c082fcffc89822aed065ef697a319f3b3b0cc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/22 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":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-18T14:30:44.730Z","repository_id":65339022,"created_at":"2025-08-18T14:30:44.730Z","updated_at":"2025-08-18T14:30:44.730Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28939567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T10:18:23.202Z","status":"ssl_error","status_checked_at":"2026-01-31T10:18:22.693Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["linux","linux-systray","macosx","macosx-systray","systray","windows","windows-systray"],"created_at":"2024-11-18T11:08:51.215Z","updated_at":"2026-01-31T11:05:49.062Z","avatar_url":"https://github.com/energye.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Systray\n\nsystray is a cross-platform Go library to place an icon and menu in the notification area.\nThis repository is a fork of [getlantern/systray](https://github.com/getlantern/systray)\nremoving the GTK dependency and support for legacy linux system tray.\n\n## Features\n\n* Supported on Windows, macOS, Linux and many BSD systems\n* Menu items can be checked and/or disabled\n* Methods may be called from any Goroutine\n* tray icon supports mouse click, double click, and right click\n\n## API\n\n```go\npackage main\n\nimport \"github.com/energye/systray\"\nimport \"github.com/energye/systray/icon\"\n\nfunc main() {\n\tsystray.Run(onReady, onExit)\n}\n\nfunc onReady() {\n\tsystray.SetIcon(icon.Data)\n\tsystray.SetTitle(\"Awesome App\")\n\tsystray.SetTooltip(\"Pretty awesome超级棒\")\n\tsystray.SetOnClick(func() {\n\t\tfmt.Println(\"SetOnClick\")\n\t})\n\tsystray.SetOnDClick(func() {\n\t\tfmt.Println(\"SetOnDClick\")\n\t})\n\tsystray.SetOnRClick(func(menu systray.IMenu) {\n\t\tmenu.ShowMenu()\n\t\tfmt.Println(\"SetOnRClick\")\n\t})\n\tmQuit := systray.AddMenuItem(\"Quit\", \"Quit the whole app\")\n\n\t// Sets the icon of a menu item.\n\tmQuit.SetIcon(icon.Data)\n}\n\nfunc onExit() {\n\t// clean up here\n}\n```\n\n### Run in another toolkit\n\nMost graphical toolkits will grab the main loop so the `Run` code above is not possible.\nFor this reason there is another entry point `RunWithExternalLoop`.\nThis function of the library returns a start and end function that should be called\nwhen the application has started and will end, to loop in appropriate features.\n\nNote: this package requires cgo, so make sure you set `CGO_ENABLED=1` before building.\n\n## Try the example app!\n\nHave go v1.12+ or higher installed? Here's an example to get started on macOS or Linux:\n\n```sh\ngit clone https://github.com/energye/systray\ncd systray/example\ngo run .\n```\n\nOn Windows, you should follow the instructions above, but use the followign run command:\n\n```\ngo run -ldflags \"-H=windowsgui\" .\n```\n\nNow look for *Awesome App* in your menu bar!\n\n![Awesome App screenshot](example/demo.png)\n\n## Platform notes\n\n### Linux/BSD\n\nThis implementation uses DBus to communicate through the SystemNotifier/AppIndicator spec, older tray implementations may not load the icon.\n\nIf you are running an older desktop environment, or system tray provider, you may require a proxy app which can convert the new DBus calls to the old format.\nThe recommended tool for Gnome based trays is [snixembed](https://git.sr.ht/~steef/snixembed), others are available.\nSearch for \"StatusNotifierItems XEmbedded\" in your package manager.\n\n### Windows\n\n```sh\ngo build -ldflags -H=windowsgui\n```\n\n### macOS\n\nOn macOS, you will need to create an application bundle to wrap the binary; simply use add folders with the following minimal structure and assets:\n\n```\nSystrayApp.app/\n  Contents/\n    Info.plist\n    MacOS/\n      go-executable\n    Resources/\n      SystrayApp.icns\n```\n\nIf bundling manually, you may want to add one or both of the following to your Info.plist:\n\n```xml\n\t\u003c!-- avoid having a blurry icon and text --\u003e\n\t\u003ckey\u003eNSHighResolutionCapable\u003c/key\u003e\n\t\u003cstring\u003eTrue\u003c/string\u003e\n\n\t\u003c!-- avoid showing the app on the Dock --\u003e\n\t\u003ckey\u003eLSUIElement\u003c/key\u003e\n\t\u003cstring\u003e1\u003c/string\u003e\n```\n\nConsult the [Official Apple Documentation here](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1).\n\n## Credits\n\n- https://github.com/getlantern/systray\n- https://github.com/xilp/systray\n- https://github.com/cratonica/trayhost\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenergye%2Fsystray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenergye%2Fsystray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenergye%2Fsystray/lists"}