-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support libayatana-appindicator on Linux
This changes the default behavior to use libayatana-appindicator instead of libappindicator. If you need to link to the older libappindicator library, use the build tag "legacy_appindicator": go build -tags=legacy_appindicator Closes #225, #224, and #191.
- Loading branch information
Showing
5 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//go:build linux && legacy_appindicator | ||
|
||
package systray | ||
|
||
/* | ||
#cgo linux pkg-config: appindicator3-0.1 | ||
#cgo linux CFLAGS: -DUSE_LEGACY_APPINDICATOR | ||
#include "systray.h" | ||
*/ | ||
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build linux && !legacy_appindicator | ||
|
||
package systray | ||
|
||
/* | ||
#cgo linux pkg-config: ayatana-appindicator3-0.1 | ||
#include "systray.h" | ||
*/ | ||
import "C" |