Documentation
¶
Overview ¶
Command trayavailable runs the reproduction of the issue "The tray's availability" (step 60.1, internal/issues TrayAvailableName) in a real app: it asks desktop.TrayAvailable from a goroutine, places a SystemTray, waits for what the tray reports, prints the report's line and issues.DoneLine, and exits. The Wine test (examples, TestWineTellsWhetherTheDesktopShowsTrayIcons) and the emulator test (internal/androidtest, TestAndroidTellsWhetherTheDesktopShowsTrayIcons) run it and read the line from its output and its log. It is a development example: it uses internal/issues.
Run it with: go run ./examples/dev/trayavailable
The report names the platform (the target platform) and what its desktop is expected to answer: yes on Windows and macOS, no on Android and iOS; on Linux it depends on the desktop, and nothing is expected.