From f9b804f7c7336366f8c532d38eddc28f9932bfc3 Mon Sep 17 00:00:00 2001 From: Balian of Ibelin Date: Tue, 1 Oct 2024 06:25:07 +0300 Subject: [PATCH] Fix libunity test when running on github --- taskbar_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/taskbar_test.go b/taskbar_test.go index 4df4fef..7201b13 100644 --- a/taskbar_test.go +++ b/taskbar_test.go @@ -10,6 +10,9 @@ const desktop = "my.app.desktop" func TestLibunity(t *testing.T) { os.Setenv("GO_TASKBAR_BACKEND", "libunity") + if _, res := os.LookupEnv("GITHUB_ACTIONS"); res { + os.Setenv("XDG_SESSION_TYPE", "wayland") + } tb, err := Connect(desktop, 0) if err != nil { t.Fatal(err)