Zenity dialogs for Golang, Windows, macOS
Go to file
2021-03-03 16:05:11 +00:00
cmd/zenity Tweaks. 2021-03-02 17:55:47 +00:00
internal/zenutil Streamline JXA. 2021-03-03 16:05:11 +00:00
.gitignore WIP: zenity command (macos). 2020-01-07 00:57:50 +00:00
color_darwin.go Remove AppleScript. 2021-02-19 02:40:46 +00:00
color_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
color_unix.go Timeouts, cancellation (macos, linux). 2020-01-28 15:23:54 +00:00
color_windows.go Fix hidden dialogs. 2021-01-05 15:20:42 +00:00
color.go Notifications (macos). 2020-01-26 16:04:49 +00:00
file_darwin.go Streamline JXA. 2021-02-19 17:46:47 +00:00
file_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
file_unix.go Timeouts, cancellation (macos, linux). 2020-01-28 15:23:54 +00:00
file_windows.go Fix #5. 2021-02-22 19:11:25 +00:00
file.go Ignore empty filename on macOS. 2021-02-18 13:24:02 +00:00
go.mod Formatting. 2020-12-11 17:33:30 +00:00
go.sum Remove AppleScript. 2021-02-19 02:40:46 +00:00
LICENSE Initial commit 2019-12-10 10:51:21 +00:00
msg_darwin.go Streamline JXA. 2021-02-19 17:46:47 +00:00
msg_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
msg_unix.go Added width/height on Unix (fix #2). 2021-02-23 02:20:07 +00:00
msg_windows.go Fix hidden dialogs. 2021-01-05 15:20:42 +00:00
msg.go Added width/height on Unix (fix #2). 2021-02-23 02:20:07 +00:00
notify_darwin.go Streamline JXA. 2021-02-19 17:46:47 +00:00
notify_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
notify_unix.go Timeouts, cancellation (macos, linux). 2020-01-28 15:23:54 +00:00
notify_windows.go Nofications (windows). 2020-01-31 02:18:43 +00:00
notify.go Notifications. 2020-01-27 16:10:04 +00:00
README.md Update README.md 2020-12-13 13:12:01 +00:00
util_windows_test.go Convert wsl/cygwin paths (windows). 2020-01-17 12:28:44 +00:00
util_windows.go Fix hidden dialogs. 2021-01-05 15:20:42 +00:00
zenity_test.go Timeouts, cancellation (tests). 2020-01-29 14:21:25 +00:00
zenity.go Added width/height on Unix (fix #2). 2021-02-23 02:20:07 +00:00

Zenity dialogs for Golang, Windows and macOS

PkgGoDev Go Report

This repo includes both a cross-platform Go package providing Zenity-like dialogs (simple dialogs that interact graphically with the user), as well as a “port” of the zenity command to both Windows and macOS based on that library.

This is a work in progress.

Lots of things are missing. For now, these are the only 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, others still are open to be fixed.

Why?

There are a bunch of other dialog packages for Go.
Why reinvent this particular wheel?

Benefits:

  • no cgo (see benefits, mostly cross-compilation)
  • no main loop (or any other threading or initialization requirements)
  • cancelation through context
  • on Windows:
    • no additional dependencies
      • Explorer shell not required
      • works in Server Core
    • Unicode support
    • WSL/Cygwin/MSYS2 support
  • on macOS:
    • only dependency is osascript
  • on other Unixes:
    • wraps either one of zenity, qarma, matedialog