diff options
| author | Fuwn <[email protected]> | 2024-09-19 18:52:34 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-19 18:52:34 -0700 |
| commit | c46e43e8f4a09795f727146b18bd34887b36cc31 (patch) | |
| tree | ee2ce20fe22956c2924b29ea65a83e0b84d541bd /rui.go | |
| parent | 45394c5e54ff546aa0dfae4e59834826ec1d46fe (diff) | |
| download | rui-c46e43e8f4a09795f727146b18bd34887b36cc31.tar.xz rui-c46e43e8f4a09795f727146b18bd34887b36cc31.zip | |
feat(rui): only notify in window manager
Diffstat (limited to 'rui.go')
| -rw-r--r-- | rui.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 { |