diff options
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | rui.go | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -33,7 +33,7 @@ { packages.default = pkgs.buildGoModule { pname = "rui"; - version = "2024.09.18"; + version = "2024.09.19"; src = pkgs.lib.cleanSource ./.; vendorHash = "sha256-mN/QjzJ4eGfbW1H92cCKvC0wDhCR6IUes2HCZ5YBdPA="; @@ -241,6 +241,10 @@ func command(name string, args ...string) error { } func notify(message string) error { + if os.Getenv("DISPLAY") == "" && os.Getenv("WAYLAND_DISPLAY") == "" { + return nil + } + notifySend, err := exec.LookPath("notify-send") if err != nil { |