mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Fixes bug where Debian system tray settings are not persisted after a restart (#40104)
Resolves #36526 Set static system tray title to avoid system tray settings not persisting across process restarts on Debian.
This commit is contained in:
parent
c3e71779f9
commit
39b0d5b507
2 changed files with 10 additions and 0 deletions
1
orbit/changes/36526-fleet-desktop-does-not-stay-hidden
Normal file
1
orbit/changes/36526-fleet-desktop-does-not-stay-hidden
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Added a system tray title to Fleet Desktop to make sure that the system tray ID is static, not dynamic.
|
||||
|
|
@ -172,6 +172,15 @@ func main() {
|
|||
|
||||
systray.SetTooltip("Fleet Desktop")
|
||||
|
||||
if runtime.GOOS == "linux" {
|
||||
// Set a static title to ensure a consistent System Tray ID across
|
||||
// process restarts. By default, fyne.io/systray generates a dynamic
|
||||
// ID using the process PID if the title is not set, which prevents
|
||||
// the OS from persisting user settings (like 'Always Hidden' or 'Pinned')
|
||||
// between sessions on Debian.
|
||||
systray.SetTitle("Fleet Desktop")
|
||||
}
|
||||
|
||||
// Default to dark theme icon because this seems to be a better fit on Linux (Ubuntu at
|
||||
// least). On macOS this is used as a template icon anyway.
|
||||
systray.SetTemplateIcon(iconDark, iconDark)
|
||||
|
|
|
|||
Loading…
Reference in a new issue