https://github.com/gopherlibs/appindicator
:traffic_light: Go bindings for libappindicator3 C library
https://github.com/gopherlibs/appindicator
Last synced: 9 months ago
JSON representation
:traffic_light: Go bindings for libappindicator3 C library
- Host: GitHub
- URL: https://github.com/gopherlibs/appindicator
- Owner: gopherlibs
- License: mit
- Created: 2022-02-18T23:04:45.000Z (almost 4 years ago)
- Default Branch: trunk
- Last Pushed: 2022-07-24T23:33:12.000Z (over 3 years ago)
- Last Synced: 2024-07-31T20:51:56.757Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 58.6 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - AppIndicator Go - Go bindings for libappindicator3 C library. (GUI / Search and Analytic Databases)
- awesome-go - AppIndicator Go - Go bindings for libappindicator3 C library. (GUI / Search and Analytic Databases)
- awesome-go - AppIndicator Go - Go bindings for libappindicator3 C library. (GUI / Search and Analytic Databases)
- awesome-go-with-stars - AppIndicator Go - Go bindings for libappindicator3 C library. (GUI / Search and Analytic Databases)
- awesome-go - AppIndicator Go - Go bindings for libappindicator3 C library. (GUI / Search and Analytic Databases)
- awesome-go - AppIndicator Go - Go bindings for libappindicator3 C library. (GUI / Search and Analytic Databases)
- awesome-go-cn - AppIndicator Go
- fucking-awesome-go - AppIndicator Go - Go bindings for libappindicator3 C library. (GUI / Search and Analytic Databases)
- awesome-go-cn - AppIndicator Go
- awesome-go-plus - AppIndicator Go - Go bindings for libappindicator3 C library.  (GUI / Search and Analytic Databases)
README
# GopherLibs >> AppIndicator [](https://goreportcard.com/report/github.com/gopherlibs/appindicator) [](https://godoc.org/github.com/gopherlibs/appindicator) [](https://github.com/avelino/awesome-go)
Go (golang) bindings for [libayatana-appindicator3](https://github.com/AyatanaIndicators/libayatana-appindicator) C library.
Libayatana-appindicator is a library to allow applications to export a menu into the Unity Menu bar.
Based on KSNI it also works in KDE and will fallback to generic Systray support if none of those are available.
Also it works in:
- Unity
- GNOME Shell with [this extension](https://github.com/ubuntu/gnome-shell-extension-appindicator)
- Budgie Desktop with [this applet](https://github.com/UbuntuBudgie/budgie-indicator-applet)
- MATE with [this applet](https://github.com/mate-desktop/mate-indicator-applet)
- Xfce with [this plugin](https://goodies.xfce.org/projects/panel-plugins/xfce4-indicator-plugin)
This package aims to be interoperable with [Go gtk3 bindings](https://github.com/gotk3/gotk3).
`3` in the name means that it's GTK3 version.
## Dependencies
On Debian-based distributions:
```bash
sudo apt install libayatana-appindicator3-dev libgtk-3-dev
```
And of course `go` with `cgo` is required.
## Building
Refer to [gotk3 wiki](https://github.com/gotk3/gotk3/wiki)
...or simply run [`build.sh`](./build.sh) script that will try to detect
currently installed version of GTK, pass along given `go build` flags
and execute it.
For example to build one of examples:
```bash
./build.sh -v examples/simple/main.go
```
## Examples
Examples are located in [examples](./examples) directory
## Project History
AppIndicator Go is a fork of Dawid Dziurla's [go-appindicator](https://github.com/dawidd6/go-appindicator).
That project was abanzoned and eventually archived.
This project continues where that one left off, under the same MIT license (of course).