Skip to content

Commit a957efe

Browse files
committed
Fix +build lines, remove extraneous pkg-config directive
This commit should make systray build on Ubuntu 20.04 and (hopefully) Debian 11 again. I fumbled the legacy "+build" tag syntax, apparently, and forgot to remove a pkg-config directive that unconditionally required libappindicator3 to be installed.
1 parent 59ef333 commit a957efe

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

systray_linux_appindicator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// +build linux,legacy_appindicator
12
//go:build linux && legacy_appindicator
23

34
package systray

systray_linux_ayatana.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// +build linux,!legacy_appindicator
12
//go:build linux && !legacy_appindicator
23

34
package systray

systray_nonwindows.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
// +build !windows
2+
// go:build !windows
23

34
package systray
45

5-
/*
6-
#cgo linux pkg-config: gtk+-3.0 appindicator3-0.1
7-
#cgo darwin CFLAGS: -DDARWIN -x objective-c -fobjc-arc
8-
#cgo darwin LDFLAGS: -framework Cocoa
9-
10-
#include "systray.h"
11-
*/
6+
// #include "systray.h"
127
import "C"
138

149
import (

0 commit comments

Comments
 (0)