{"id":18678039,"url":"https://github.com/pegvin/libappimage-go","last_synced_at":"2025-11-07T09:30:32.056Z","repository":{"id":57660604,"uuid":"472733615","full_name":"pegvin/libappimage-go","owner":"pegvin","description":"Go Bindings For LibAppImage","archived":false,"fork":false,"pushed_at":"2023-01-28T16:12:54.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T21:14:16.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/pegvin.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":"2022-03-22T11:18:23.000Z","updated_at":"2023-01-28T15:54:47.000Z","dependencies_parsed_at":"2023-02-15T17:30:44.757Z","dependency_job_id":null,"html_url":"https://github.com/pegvin/libappimage-go","commit_stats":null,"previous_names":["devloprr/libappimage-go","devloprr/binding-libappimage-go"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Flibappimage-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Flibappimage-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Flibappimage-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegvin%2Flibappimage-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pegvin","download_url":"https://codeload.github.com/pegvin/libappimage-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239525474,"owners_count":19653332,"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-07T09:35:49.801Z","updated_at":"2025-11-07T09:30:32.003Z","avatar_url":"https://github.com/pegvin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LibAppImage Go\nGo Bindings For LibAppImage\n\n---\n### Usage\n\nMake sure to first make a new binding:\n```go\nmyBinding, err := libappimagego.NewLibAppImageBindings()\n```\nAnd this is some extra stuff for storing appimage \u0026 debug flag\n```go\nappImagePath, debug := \"/home/aditya/test.appimage\", false\n```\n\n#### API\n##### `(bind *libAppImageBind) Register(filePath string, debug bool) (error)`\nRegister the appimage from the given path to system, registering here is a term which can be used interchangeably with integrating.\n\n```go\nerr := myBinding.Register(appImagePath, debug)\nif err != nil {\n    panic(err)\n}\n```\n\n##### `(bind *libAppImageBind) UnRegister(filePath string, debug bool) (error)`\nUnRegister/De-Integrate the appimage from the given path from system.\n\n```go\nerr := myBinding.UnRegister(appImagePath, debug)\nif err != nil {\n    panic(err)\n}\n```\n\n##### `(bind *libAppImageBind) ShallAppImageBeRegistered(filePath string) (bool)`\nReturns a boolean representing if the AppImage Distributor/Author wants the appimage to be integrated to system or not.\n\n```go\nshallBeRegistered := myBinding.ShallAppImageBeRegistered(appImagePath)\nif shallBeRegistered {\n    doSomething()\n}\n```\n\n##### `(bind *libAppImageBind) IsRegistered(filePath string) (bool)`\nReturns a boolean representing if the appimage is registered/integrated or not.\n\n```go\nisRegistered := myBinding.IsRegistered(appImagePath)\nif isRegistered {\n    doSomething()\n}\n```\n\n##### `(bind *libAppImageBind) IsTerminalApp(filePath string) (bool)`\nReturns a boolean representing if the appimage is a terminal app or not.\n\n```go\nisTerminalApp := myBinding.IsTerminalApp(appImagePath)\nif isTerminalApp {\n    doSomething()\n}\n```\n\n##### `(bind *libAppImageBind) GetType(filePath string, debug bool) (int)`\nReturns a integer representing the type of the appimage, 0 means Legacy, 1 means type 1, 2 means type 2 \u0026 -1 means invalid appimage. [Read More About AppImage Types](https://github.com/AppImage/AppImageSpec/blob/master/draft.md#image-format). LibAppImage Go provides constants to make to code more readable.\n\n```go\nappimageType := myBinding.GetType(appImagePath, debug)\nif appimageType == libappimagego.APPIMAGE_TYPE_LEGACY {\n    doSomething()\n} else if appimageType == APPIMAGE_TYPE_1 {\n    doSomething()\n} else if appimageType == APPIMAGE_TYPE_2 {\n    doSomething()\n} else if appimageType == APPIMAGE_TYPE_INVALID {\n    doSomething()\n}\n```\n\n##### `(bind *libAppImageBind) Close()`\nMake sure to call the `Close()` method so that it closes the bindings.\n\n```go\nmyBinding.Close()\n```\n\n---\n\n## Thanks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegvin%2Flibappimage-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpegvin%2Flibappimage-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegvin%2Flibappimage-go/lists"}