Updated readme
This commit is contained in:
parent
e6066371d7
commit
3ccad25dfe
15
README.md
15
README.md
|
@ -49,7 +49,7 @@ SystemTray.ICON_PATH (type String, default value '')
|
|||
|
||||
|
||||
|
||||
A *simple* example is as follows:
|
||||
The test application is under text, and a *simple* example is as follows:
|
||||
// if using provided JNA jars. Not necessary if
|
||||
//using JNA from https://github.com/twall/jna
|
||||
System.load("Path to OS specific JNA jar");
|
||||
|
@ -62,9 +62,9 @@ A *simple* example is as follows:
|
|||
|
||||
this.systemTray.addMenuEntry("Quit", new SystemTrayMenuAction() {
|
||||
@Override
|
||||
public void onClick(SystemTray systemTray) {
|
||||
systemTray.removeTray();
|
||||
// exit or something.
|
||||
public
|
||||
void onClick(final SystemTray systemTray, final MenuEntry menuEntry) {
|
||||
System.exit(0);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
@ -85,7 +85,7 @@ Note: This project was heavily influenced by the excellent Lantern project,
|
|||
https://github.com/getlantern/lantern
|
||||
```
|
||||
```
|
||||
Note: Gnome-shell users will experience an extension install to also support this
|
||||
Note: Gnome-shell users will experience an extension install to support this
|
||||
functionality. Additionally, a shell restart is necessary for the extension
|
||||
to be registered by the shell. You can disable the restart behavior if you like,
|
||||
and the 'system tray' functionality will be picked up on log out/in, or a
|
||||
|
@ -93,5 +93,10 @@ Note: Gnome-shell users will experience an extension install to also support thi
|
|||
|
||||
Also, screw you gnome-project leads, for making it such a pain-in-the-ass
|
||||
to do something so incredibly simple and basic.
|
||||
|
||||
Note: Some desktop environments might use a dated version of libappindicator, when
|
||||
icon support in menus was removed, then put back. This happened in version 3.
|
||||
This library will try to load a GTK indicator instead when it can, or will try
|
||||
to load libappindicator1 first. Thank you RedHat for putting it back.
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user