Documentation
¶
Overview ¶
Package desktop owns the desktop shell lifecycle. It does not scan machines or launch agents; the GUI service supplies the shared session state and commands.
Index ¶
- func Effective(d config.Desktop, c Capabilities) string
- func KeepOnClose(d config.Desktop) bool
- func Validate(d config.Desktop, c Capabilities) error
- type Capabilities
- type Controller
- func (c *Controller) Apply(p config.Desktop, login bool) error
- func (c *Controller) BackgroundLaunch() bool
- func (c *Controller) CloseQuick()
- func (c *Controller) Foreground() bool
- func (c *Controller) KeepOnClose() bool
- func (c *Controller) OpenMain()
- func (c *Controller) Recheck()
- func (c *Controller) SetAttention(needs, tabs int)
- func (c *Controller) ShowQuick()
- func (c *Controller) Snapshot() State
- func (c *Controller) Stop()
- func (c *Controller) Suspended() bool
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeepOnClose ¶
KeepOnClose is independent of icon placement. Launching Hopsesh again uses the single-instance handler to show its existing window, including without a tray.
Types ¶
type Capabilities ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the only owner of desktop shell state. Native calls are serialized; callbacks never acquire this mutex from the UI thread.
func New ¶
func New(app *application.App, main *application.WebviewWindow, prefs config.Desktop, privileged func(*application.WebviewWindow), open func(string), changed func()) *Controller
func (*Controller) BackgroundLaunch ¶
func (c *Controller) BackgroundLaunch() bool
func (*Controller) CloseQuick ¶
func (c *Controller) CloseQuick()
func (*Controller) Foreground ¶
func (c *Controller) Foreground() bool
func (*Controller) KeepOnClose ¶
func (c *Controller) KeepOnClose() bool
func (*Controller) OpenMain ¶
func (c *Controller) OpenMain()
func (*Controller) Recheck ¶
func (c *Controller) Recheck()
func (*Controller) SetAttention ¶
func (c *Controller) SetAttention(needs, tabs int)
func (*Controller) ShowQuick ¶
func (c *Controller) ShowQuick()
func (*Controller) Snapshot ¶
func (c *Controller) Snapshot() State
func (*Controller) Stop ¶
func (c *Controller) Stop()
func (*Controller) Suspended ¶
func (c *Controller) Suspended() bool