-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
26 lines (26 loc) · 1.39 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Package to set window hints like progress in taskbar on Linux.
//
// You can enable progress bar, set an urgent state to an application ("pulse")
// or add a counter badge in taskbar.
// Take a note that you should not make your application rely on these features,
// as whether they will work depends on users desktop environments.
//
// The package uses libunity Launcher API
// (https://wiki.ubuntu.com/Unity/LauncherAPI) by default, which is supported in
// KDE and in GNOME with extensions like Dash-to-Dock. On Cinnamon it uses Xorg
// hints, the same that are used in libxapp (https://github.com/linuxmint/xapp).
// Neither libunity nor libxapp don't need to be installed for this package to
// work, direct Dbus calls and Xorg hints are used instead.
//
// There are 3 environment variables to enforce specific behaviour for this
// library:
//
// - GO_TASKBAR_BACKEND chooses specific backend no matter what should be
// selected automatically by code. Only useful for testing.
// Possible values: libunity, xapp
// - GO_TASKBAR_DESKTOP_NAME overwrites desktop file name passed to the library
// for libunity backend to work. This can be useful for packagers (especially
// for snaps, because desktop file names are changed there automaticaly)
// without the need to patch a program.
// - GO_TASKBAR_TEST_XID needs to be set to proper X11 window id to pass Xapp test.
package taskbar