diff --git a/ee/desktop/menu/menu.go b/ee/desktop/menu/menu.go index 976c1d2a2..44b9f4c6e 100644 --- a/ee/desktop/menu/menu.go +++ b/ee/desktop/menu/menu.go @@ -14,8 +14,7 @@ import ( type menuIcon string const ( - KolideDesktopIcon = "kolide-desktop" - KolideDebugDesktopIcon = "kolide-debug-desktop" + KolideDesktopIcon = "kolide-desktop" ) // MenuData encapsulates a menu bar icon and accessible menu items diff --git a/ee/desktop/menu/menu_parse_test.go b/ee/desktop/menu/menu_parse_test.go index 8aea07a4c..2766cdd2b 100644 --- a/ee/desktop/menu/menu_parse_test.go +++ b/ee/desktop/menu/menu_parse_test.go @@ -63,7 +63,7 @@ func Test_ParseMenuData(t *testing.T) { { name: "happy path", data: &MenuData{ - Icon: KolideDebugDesktopIcon, + Icon: KolideDesktopIcon, Tooltip: "Kolide", }, }, diff --git a/ee/desktop/menu/menu_systray.go b/ee/desktop/menu/menu_systray.go index 833bdb4d9..fd55f26a0 100644 --- a/ee/desktop/menu/menu_systray.go +++ b/ee/desktop/menu/menu_systray.go @@ -46,9 +46,12 @@ func (m *menu) Build() { func (m *menu) SetIcon(icon menuIcon) { switch icon { case KolideDesktopIcon: - systray.SetTemplateIcon(assets.KolideDesktopIcon, assets.KolideDesktopIcon) - case KolideDebugDesktopIcon: - systray.SetTemplateIcon(assets.KolideDebugDesktopIcon, assets.KolideDebugDesktopIcon) + // Allow launcher to conditionally choose the launcher icon based on whether we're running in production or not + if m.isProd() { + systray.SetTemplateIcon(assets.KolideDesktopIcon, assets.KolideDesktopIcon) + } else { + systray.SetTemplateIcon(assets.KolideDebugDesktopIcon, assets.KolideDebugDesktopIcon) + } default: level.Debug(m.logger).Log( "msg", "invalid icon",