Add Linux system tray support via AppIndicator3#1300
Open
abn wants to merge 2 commits intolemonade-sdk:mainfrom
Open
Add Linux system tray support via AppIndicator3#1300abn wants to merge 2 commits intolemonade-sdk:mainfrom
abn wants to merge 2 commits intolemonade-sdk:mainfrom
Conversation
superm1
reviewed
Mar 5, 2026
superm1
reviewed
Mar 6, 2026
superm1
reviewed
Mar 6, 2026
lemonade-tray now builds on Linux when GTK3 + AppIndicator3 are present (auto-detected at CMake configure time; use ENABLE_LINUX_TRAY=ON to require them). The GTK-free ayatana-appindicator-glib variant is preferred. The tray connects to an already-running server, or starts one via systemd if a unit is installed, otherwise spawns lemonade-router directly. lemonade-server on Linux remains always headless. setup.sh gains optional tray dependency detection. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ayatana-appindicator-glib exports menus as org.gtk.Menus, but GNOME Shell's AppIndicator extension only speaks com.canonical.dbusmenu. Register an empty GMenu and DbusmenuServer before setting the indicator active to avoid a race on discovery, then populate both on set_menu(). Also fix submenu rendering: use g_menu_item_new_submenu() to avoid the dbusmenu serialiser discarding the submenu link, and skip appending empty sections. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lemonade-tray now builds on Linux when GTK3 + AppIndicator3 are present
(auto-detected at CMake configure time; use ENABLE_LINUX_TRAY=ON to require
them). The GTK-free ayatana-appindicator-glib variant is preferred. The tray
connects to an already-running server, or starts one via systemd if a unit is
installed, otherwise spawns lemonade-router directly. lemonade-server on Linux
remains always headless. setup.sh gains optional tray dependency detection.