getlantern / systray

a cross platfrom Go library to place an icon and menu in the notification area
Apache License 2.0
3.28k stars 451 forks source link

Fix build on debian 11 and Ubuntu20.04 #227

Closed nange closed 2 years ago

nange commented 2 years ago

On Ubuntu20.04, exec go build in example dir failed:

go build 
# pkg-config --cflags  -- ayatana-appindicator3-0.1 gtk+-3.0 appindicator3-0.1
Package appindicator3-0.1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `appindicator3-0.1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'appindicator3-0.1' found
pkg-config: exit status 1

The PR fixed this issue. And I tested on Ubuntu18.04 which was worked.

nange commented 2 years ago

@Crosse PTAL.

Crosse commented 2 years ago

Thanks for this! It looks like I also messed up the legacy +build tags as well, so I'll commit something in a bit that incorporates this change along with the build tags fix.

nange commented 2 years ago

OK. Let's close this PR.