]> khamidou — GitHub mirrors - electron.git/commitdiff
:memo: Mention platform limitations on Linux.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 2 Jun 2014 15:18:14 +0000 (23:18 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 2 Jun 2014 15:18:14 +0000 (23:18 +0800)
docs/api/tray.md

index 02350a68c908d620f86d7697c8d0803cfac868f2..f35fc4bdcf66c23df044530fb6d3dd439674a728 100644 (file)
@@ -21,6 +21,13 @@ appIcon.setContextMenu(contextMenu);
 __Platform limitations:__
 
 * On OS X `clicked` event will be ignored if the tray icon has context menu.
+* On Linux app indicator will be used if it is supported, otherwise
+  `GtkStatusIcon` will be used instead.
+* App indicator will only be showed when it has context menu.
+* When app indicator is used on Linux, `clicked` event is ignored.
+
+So if you want to keep exact same behaviors on all platforms, you should not
+rely on `clicked` event and always attach a context menu to the tray icon.
 
 ## Class: Tray