From 92d793d2948be7a04432b583bcf67075eeb0c26f Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Fri, 10 Jan 2020 02:14:50 +0000 Subject: [PATCH] Deprecate matedialog (linux). --- README.md | 4 ++-- internal/zen/zen_unix.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2bcb6f3..cf0b0cb 100644 --- a/README.md +++ b/README.md @@ -36,5 +36,5 @@ Why reinvent this particular wheel? * only dependency is `osascript` (with [JXA](https://developer.apple.com/library/archive/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/Articles/Introduction.html)) * JavaScript is easier to template with `html/template` * on other UNIXes: - * wraps either one of `matedialog`, `qarma`, `zenity` - * in that order of preference, most to least specific + * wraps either one of `qarma`, `zenity`, `matedialog` + * in that order of preference diff --git a/internal/zen/zen_unix.go b/internal/zen/zen_unix.go index 99e2468..cc5c0ff 100644 --- a/internal/zen/zen_unix.go +++ b/internal/zen/zen_unix.go @@ -13,7 +13,7 @@ import ( var tool, path string func init() { - for _, tool = range [3]string{"matedialog", "qarma", "zenity"} { + for _, tool = range [3]string{"qarma", "zenity", "matedialog"} { path, _ = exec.LookPath(tool) if path != "" { return