This repo includes:
zenity
command to both Windows and macOS based on that library.Implemented dialogs:
Behavior on Windows, macOS and other Unixes might differ slightly. Some of that is intended (reflecting platform differences), other bits are unfortunate limitations.
The Go package:
go get github.com/ncruces/zenity@latest
The zenity
command on macOS/WSL using Homebrew 🍺:
brew install ncruces/tap/zenity
The zenity
command on Windows using Scoop 🍨:
scoop install https://ncruces.github.io/scoop/zenity.json
The zenity
command on macOS/Windows, if you have Go:
go install github.com/ncruces/zenity/cmd/zenity@latest
Or download the latest release.
For the Go package, consult the documentation and examples.
The zenity
command does its best to be compatible with the GNOME version.\
Consult the documentation
and man page of that command.
cgo
(see benefits, mostly cross-compilation)context
osascript
zenity
, matedialog
, qarma
Zenity wrappers for languages other than Go can benefit from our zenity
command. On Unix (Linux, FreeBSD, etc) they can use the original tool, and on Windows/macOS they may use the command from this repo for portability.
Examples:
dialog-gui
by @SnurfDevzenity.cr
by @kojix2I'd like to thank all contributors,
but @gen2brain in particular
for dlgs
,
which was instrumental to the Windows port of zenity
.