{"id":16195246,"url":"https://github.com/mrf345/desktop-entry","last_synced_at":"2026-04-28T11:02:18.279Z","repository":{"id":255014205,"uuid":"848263987","full_name":"mrf345/desktop-entry","owner":"mrf345","description":"Generate and update .desktop (desktop entry) files for Go binaries automatically.","archived":false,"fork":false,"pushed_at":"2024-09-10T18:29:39.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T18:37:14.193Z","etag":null,"topics":["desktop-app","desktop-entry","desktop-environment","go","golang","linux","unix"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/mrf345/desktop-entry","language":"Go","has_issues":true,"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/mrf345.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":"2024-08-27T12:51:18.000Z","updated_at":"2024-09-10T18:28:46.000Z","dependencies_parsed_at":"2024-11-03T06:22:38.882Z","dependency_job_id":"72cb5810-83a9-4d8d-8ad7-94a4a83655e6","html_url":"https://github.com/mrf345/desktop-entry","commit_stats":null,"previous_names":["mrf345/desktop-entry"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrf345%2Fdesktop-entry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrf345%2Fdesktop-entry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrf345%2Fdesktop-entry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrf345%2Fdesktop-entry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrf345","download_url":"https://codeload.github.com/mrf345/desktop-entry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685594,"owners_count":20979084,"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":["desktop-app","desktop-entry","desktop-environment","go","golang","linux","unix"],"created_at":"2024-10-10T08:26:47.634Z","updated_at":"2026-04-28T11:02:13.235Z","avatar_url":"https://github.com/mrf345.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2\u003e\u003c/h2\u003e\n\u003ch1\u003e\ndesktop-entry\n\u003ca href='https://github.com/mrf345/desktop-entry/actions/workflows/ci.yml'\u003e\n  \u003cimg src='https://github.com/mrf345/desktop-entry/actions/workflows/ci.yml/badge.svg'\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pkg.go.dev/github.com/mrf345/desktop-entry/\"\u003e\n  \u003cimg src=\"https://pkg.go.dev/badge/github.com/mrf345/desktop-entry/.svg\" alt=\"Go Reference\"\u003e\n\u003c/a\u003e\n\u003c/h1\u003e\n\nGenerate and update .desktop (desktop entry) files for Go binaries automatically.\n\n### Install\n\nTo add it to your project\n\n```shell\ngo get https://github.com/mrf345/desktop-entry@latest\n```\n\n### How it works\n\nWith the default settings `desktopEntry.Create()` will check your `~/.local/share/applications` for a .desktop file, that matches your apps name, if it can't find it, it'll create a new one. That will later on be updated it only when the binary path changes.\n\n### Example\n\n```go\npackage main\n\nimport (\n\t_ \"embed\"\n\t\"fmt\"\n\t\"os\"\n\n\tdesktopEntry \"github.com/mrf345/desktop-entry\"\n)\n\n// assuming you have an existing icon.png file to embed\n//go:embed icon.png\nvar icon []byte\n\nfunc main() {\n\t// Create an instance and pass the required settings\n\tappName := \"Desktop Entry\"\n\tappVersion := \"0.0.1\"\n\tentry := desktopEntry.New(appName, appVersion, icon)\n\n\t// Some optional settings (check https://pkg.go.dev/github.com/mrf345/desktop-entry#DesktopEntry)\n\tentry.Comment = \"package to help creating desktop entry file for Go\"\n\tentry.Categories = \"accessories;Development;\"\n\tentry.Arch = \"arm64\"\n\n\t// Make sure to always run it at the beginning of your main function\n\tif err := entry.Create(); err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrf345%2Fdesktop-entry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrf345%2Fdesktop-entry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrf345%2Fdesktop-entry/lists"}